Scan META-INF of jars to find:
| Modifier and Type | Field and Description |
|---|---|
| public static final List | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final boolean | |
| private static final Logger | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | RESOURCE_DIRS
If set, to a list of URLs, these resources are added to the context resource base as a resource collection. |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(WebAppContext
The context to configure context)Overrides org. Implements org. Configure WebApp. |
| public void | findAndFilterContainerPaths(final WebAppContext
the WebAppContext being deployed context)Find jars and directories that are on the container's classpath and apply an optional filter. |
| public void | findAndFilterWebAppPaths(WebAppContext
the WebAppContext being deployed context)Finds the jars that are either physically or virtually in WEB-INF/lib, and applies an optional filter to their full pathnames. |
| protected List | |
| protected List | Returns: the list of Resources to the extra classpaththe context to look for extra classpaths in context)Get class dirs from WebAppContext.getExtraClasspath as resources |
| protected List | Returns: the list of Resources with the extra classpath, or null if not foundthe context to find extra classpath jars in context)Get jars from WebAppContext.getExtraClasspath as resources |
| protected List | Returns: the list of jar resources found within contextthe context to find the jars in context)Look for jars that should be treated as if they are in WEB-INF/lib |
| protected Resource | Returns: the Resource for theWEB-INF/classes directorythe context to look for the context)WEB-INF/classes directoryGet |
| protected List | Returns: the list of jars asResourcethe context to find the lib jars in context)Look for jars in |
| protected List | |
| private Collection | Returns: the collection of tlds as url referencesthe directory dir)Find all .tld files in the given directory. |
| private static boolean | |
| private static boolean | |
| private boolean | |
| public void | postConfigure(WebAppContext
The context to configure context)Overrides org. Implements org. Clear down after configuration. |
| public void | preConfigure(final WebAppContext
The context to configure context)Overrides org. Implements org. Set up for configuration. |
| public void | scanForFragment(WebAppContext
the context for the scan context, Resource the dir to scan for fragments dir, ConcurrentHashMap<Resource, Resource> the resource cache cache)Scan for META-INF/web-fragment.xml file in the given directory. |
| public void | scanForResources(WebAppContext
the context for the scan context, Resource the target directory to scan dir, ConcurrentHashMap<Resource, Resource> the resource cache cache)Scan for META-INF/resources dir in the given directory. |
| public void | scanForTlds(WebAppContext
the context for the scan context, Resource the directory resource to scan for .tlds dir, ConcurrentHashMap<Resource, Collection<URL>> the resource cache cache)Discover META-INF/*.tld files in the given directory |
| protected void | |
| public void | scanJars(final WebAppContext
the context for the scan context, Collection<Resource> the jars to scan jars, boolean if true, the scanned info is cached useCaches)For backwards compatibility. |
| public void | scanJars(final WebAppContext
the context for the scan context, Collection<Resource> the jars resources to scan jars, boolean if true, cache the info discovered useCaches, List<String> the type of things to look for in the jars scanTypes)Look into the jars to discover info in META-INF. |
| __allScanTypes | back to summary |
|---|---|
| public static final List<String> __allScanTypes | |
| CACHED_CONTAINER_FRAGMENTS | back to summary |
|---|---|
| public static final String CACHED_CONTAINER_FRAGMENTS | |
| CACHED_CONTAINER_RESOURCES | back to summary |
|---|---|
| public static final String CACHED_CONTAINER_RESOURCES | |
| CACHED_CONTAINER_TLDS | back to summary |
|---|---|
| public static final String CACHED_CONTAINER_TLDS | |
| CONTAINER_JAR_PATTERN | back to summary |
|---|---|
| public static final String CONTAINER_JAR_PATTERN | |
| DEFAULT_USE_CONTAINER_METAINF_CACHE | back to summary |
|---|---|
| public static final boolean DEFAULT_USE_CONTAINER_METAINF_CACHE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| METAINF_FRAGMENTS | back to summary |
|---|---|
| public static final String METAINF_FRAGMENTS | |
| METAINF_RESOURCES | back to summary |
|---|---|
| public static final String METAINF_RESOURCES | |
| METAINF_TLDS | back to summary |
|---|---|
| public static final String METAINF_TLDS | |
| RESOURCE_DIRS | back to summary |
|---|---|
| public static final String RESOURCE_DIRS If set, to a list of URLs, these resources are added to the context resource base as a resource collection. | |
| USE_CONTAINER_METAINF_CACHE | back to summary |
|---|---|
| public static final String USE_CONTAINER_METAINF_CACHE | |
| WEBINF_JAR_PATTERN | back to summary |
|---|---|
| public static final String WEBINF_JAR_PATTERN | |
| MetaInfConfiguration | back to summary |
|---|---|
| public MetaInfConfiguration() | |
| configure | back to summary |
|---|---|
| public void configure(WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. Configure WebApp.
Typically this step applies the discovered configuration resources to
either the
| |
| findAndFilterContainerPaths | back to summary |
|---|---|
| public void findAndFilterContainerPaths(final WebAppContext context) throws Exception Find jars and directories that are on the container's classpath and apply an optional filter. The filter is a pattern applied to the full jar or directory names. If there is no pattern, then no jar or dir is considered to match. Those jars that do match will be later examined for META-INF information and annotations. To find them, examine the classloaders in the hierarchy above the webapp classloader that are URLClassLoaders. For jdk-9 we also look at the java.class.path, and the jdk.module.path.
| |
| findAndFilterWebAppPaths | back to summary |
|---|---|
| public void findAndFilterWebAppPaths(WebAppContext context) throws Exception Finds the jars that are either physically or virtually in WEB-INF/lib, and applies an optional filter to their full pathnames. The filter selects which jars will later be examined for META-INF information and annotations. If there is no pattern, then all jars are considered selected.
| |
| findClassDirs | back to summary |
|---|---|
| protected List | |
| findExtraClasspathDirs | back to summary |
|---|---|
| protected List Get class dirs from WebAppContext.getExtraClasspath as resources
| |
| findExtraClasspathJars | back to summary |
|---|---|
| protected List Get jars from WebAppContext.getExtraClasspath as resources
| |
| findJars | back to summary |
|---|---|
| protected List Look for jars that should be treated as if they are in WEB-INF/lib
| |
| findWebInfClassesDir | back to summary |
|---|---|
| protected Resource findWebInfClassesDir(WebAppContext context) throws Exception Get
| |
| findWebInfLibJars | back to summary |
|---|---|
| protected List Look for jars in
| |
| getAllContainerJars | back to summary |
|---|---|
| protected List | |
| getTlds | back to summary |
|---|---|
| private Collection Find all .tld files in the given directory.
| |
| isEmptyFragment | back to summary |
|---|---|
| private static boolean isEmptyFragment(Resource webFrag) | |
| isEmptyResource | back to summary |
|---|---|
| private static boolean isEmptyResource(Resource resourcesDir) | |
| isFileSupported | back to summary |
|---|---|
| private boolean isFileSupported(Resource resource) | |
| postConfigure | back to summary |
|---|---|
| public void postConfigure(WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. Clear down after configuration.
| |
| preConfigure | back to summary |
|---|---|
| public void preConfigure(final WebAppContext context) throws Exception Overrides org. Implements org. Doc from org. Set up for configuration. Typically this step discovers configuration resources. Calls to preConfigure may alter the Configurations configured on the WebAppContext, so long as configurations prior to this configuration are not altered.
| |
| scanForFragment | back to summary |
|---|---|
| public void scanForFragment(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/web-fragment.xml file in the given directory.
| |
| scanForResources | back to summary |
|---|---|
| public void scanForResources(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Resource> cache) Scan for META-INF/resources dir in the given directory.
| |
| scanForTlds | back to summary |
|---|---|
| public void scanForTlds(WebAppContext context, Resource dir, ConcurrentHashMap<Resource, Collection<URL>> cache) throws Exception Discover META-INF/*.tld files in the given directory
| |
| scanJars | back to summary |
|---|---|
| protected void scanJars(WebAppContext context) throws Exception | |
| scanJars | back to summary |
|---|---|
| public void scanJars(final WebAppContext context, Collection<Resource> jars, boolean useCaches) throws Exception For backwards compatibility. This method will always scan for all types of data.
| |
| scanJars | back to summary |
|---|---|
| public void scanJars(final WebAppContext context, Collection<Resource> jars, boolean useCaches, List<String> scanTypes) throws Exception Look into the jars to discover info in META-INF. If useCaches == true, then we will cache the info discovered indexed by the jar in which it was discovered: this speeds up subsequent context deployments.
| |