public class StandardJarScanner extends java.lang.Object implements JarScanner
JarScanner
implementation scans the WEB-INF/lib directory
followed by the provided classloader and then works up the classloader
hierarchy. This implementation is sufficient to meet the requirements of the
Servlet 3.0 specification as well as to provide a number of Tomcat specific
extensions. The extensions are:
Constructor and Description |
---|
StandardJarScanner() |
Modifier and Type | Method and Description |
---|---|
boolean |
isScanAllDirectories() |
boolean |
isScanAllFiles() |
boolean |
isScanBootstrapClassPath() |
boolean |
isScanClassPath() |
void |
scan(ServletContext context,
java.lang.ClassLoader classloader,
JarScannerCallback callback,
java.util.Set<java.lang.String> jarsToSkip)
Scan the provided ServletContext and classloader for JAR files.
|
void |
setScanAllDirectories(boolean scanAllDirectories) |
void |
setScanAllFiles(boolean scanAllFiles) |
void |
setScanBootstrapClassPath(boolean scanBootstrapClassPath) |
void |
setScanClassPath(boolean scanClassPath) |
public boolean isScanClassPath()
public void setScanClassPath(boolean scanClassPath)
public boolean isScanAllFiles()
public void setScanAllFiles(boolean scanAllFiles)
public boolean isScanAllDirectories()
public void setScanAllDirectories(boolean scanAllDirectories)
public boolean isScanBootstrapClassPath()
public void setScanBootstrapClassPath(boolean scanBootstrapClassPath)
public void scan(ServletContext context, java.lang.ClassLoader classloader, JarScannerCallback callback, java.util.Set<java.lang.String> jarsToSkip)
scan
in interface JarScanner
context
- The ServletContext - used to locate and access
WEB-INF/libclassloader
- The classloader - used to access JARs not in
WEB-INF/libcallback
- The handler to process any JARs foundjarsToSkip
- List of JARs to ignore. If this list is null, a
default list will be read from the system property
defined by Constants.SKIP_JARS_PROPERTY
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.