org.apache.tomcat
Interface JarScanner
- All Known Implementing Classes:
- StandardJarScanner
public interface JarScanner
Scans a web application and classloader hierarchy for JAR files. Uses
include TLD scanning and web-fragment.xml scanning. Uses a call-back
mechanism so the caller can process each JAR found.
scan
void scan(ServletContext context,
ClassLoader classloader,
JarScannerCallback callback,
Set<String> jarsToSkip)
- Scan the provided ServletContext and classloader for JAR files. Each JAR
file found will be passed to the callback handler to be processed.
- Parameters:
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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.