public class WebClassesFinder extends AbstractClassFinder
ClassFinder that searches for classes in the /WEB-INF/classes directory of a
web application. Please note that this class is stateful. It should be used only for one class to
findClasses(PrettyAnnotationHandler).classLoader, log, packageFilter, servletContext| Constructor and Description |
|---|
WebClassesFinder(ServletContext servletContext,
ClassLoader classLoader,
PackageFilter packageFilter)
Initialization
|
| Modifier and Type | Method and Description |
|---|---|
void |
findClasses(PrettyAnnotationHandler handler)
Starting to search for classes.
|
protected void |
processDirectory(URL classesFolderUrl,
URL directoryUrl,
PrettyAnnotationHandler handler)
Scan for classes in a single directory.
|
getClassName, mustProcessClass, processClass, stripKnownPrefixpublic WebClassesFinder(ServletContext servletContext, ClassLoader classLoader, PackageFilter packageFilter)
public void findClasses(PrettyAnnotationHandler handler)
ClassFinderPrettyAnnotationHandler.handler - The handler to notifyprotected void processDirectory(URL classesFolderUrl, URL directoryUrl, PrettyAnnotationHandler handler) throws MalformedURLException
#processClassURL(URL, PrettyAnnotationHandler) when it finds a file ending with ".class" and that is
accepted by the PackageFilterdirectoryUrl - The URL of the directory to scanhandler - The handler class for classes foundMalformedURLException - for invalid URLsCopyright © 2013 OCPsoft. All Rights Reserved.