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 call to
findClasses(ClassVisitor).classLoader, log, packageFilter, servletContext| Constructor and Description |
|---|
WebClassesFinder(javax.servlet.ServletContext servletContext,
ClassLoader classLoader,
PackageFilter packageFilter,
ByteCodeFilter byteCodeFilter)
Initialization
|
| Modifier and Type | Method and Description |
|---|---|
void |
findClasses(ClassVisitor visitor) |
int |
priority() |
protected void |
processDirectory(URL absoluteUrl,
String relativePath,
ClassVisitor visitor)
Scan for classes in a single directory.
|
getClassName, mustProcessClass, processClass, stripKnownPrefixpublic WebClassesFinder(javax.servlet.ServletContext servletContext,
ClassLoader classLoader,
PackageFilter packageFilter,
ByteCodeFilter byteCodeFilter)
public void findClasses(ClassVisitor visitor)
protected void processDirectory(URL absoluteUrl, String relativePath, ClassVisitor visitor) throws MalformedURLException
AbstractClassFinder.processClass(String, InputStream, ClassVisitor) when it finds a file ending with ".class" and
that is accepted by the PackageFilterabsoluteUrl - The absolute URL of the WEB-INF node to scanrelativePath - The path of the node inside the WEB-INFvisitor - The visitor class to call for classes foundMalformedURLException - for invalid URLspublic int priority()
Copyright © 2018 OCPsoft. All rights reserved.