Top Description Methods
org.apache.tomcat

public Interface JarScanner

Known Direct Implementers
org.apache.tomcat.util.scan.StandardJarScanner
Imports
jakarta.servlet.ServletContext

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.

Method Summary

Modifier and TypeMethod and Description
public JarScanFilter
public void
scan(JarScanType
The type of JAR scan to perform. This is passed to the filter which uses it to determine how to filter the results
scanType
,
ServletContext
The ServletContext - used to locate and access WEB-INF/lib
context
,
JarScannerCallback
The handler to process any JARs found
callback
)

Scan the provided ServletContext and classloader for JAR files.

public void

Method Detail

getJarScanFilterback to summary
public JarScanFilter getJarScanFilter()
scanback to summary
public void scan(JarScanType scanType, ServletContext context, JarScannerCallback callback)

Scan the provided ServletContext and classloader for JAR files. Each JAR file found will be passed to the callback handler to be processed.

Parameters
scanType:JarScanType

The type of JAR scan to perform. This is passed to the filter which uses it to determine how to filter the results

context:ServletContext

The ServletContext - used to locate and access WEB-INF/lib

callback:JarScannerCallback

The handler to process any JARs found

setJarScanFilterback to summary
public void setJarScanFilter(JarScanFilter jarScanFilter)