public class MetaInfConfiguration extends AbstractConfiguration
Configuration.ClassList| Modifier and Type | Field and Description |
|---|---|
static String |
CACHED_CONTAINER_FRAGMENTS |
static String |
CACHED_CONTAINER_RESOURCES |
static String |
CACHED_CONTAINER_TLDS |
static boolean |
DEFAULT_USE_CONTAINER_METAINF_CACHE |
static String |
METAINF_FRAGMENTS |
static String |
METAINF_RESOURCES |
static String |
METAINF_TLDS |
static String |
USE_CONTAINER_METAINF_CACHE |
ATTR| Constructor and Description |
|---|
MetaInfConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
postConfigure(WebAppContext context)
Clear down after configuration.
|
void |
preConfigure(WebAppContext context)
Set up for configuration.
|
void |
scanForFragment(WebAppContext context,
Resource jar,
ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/web-fragment.xml file in the given jar.
|
void |
scanForResources(WebAppContext context,
Resource target,
ConcurrentHashMap<Resource,Resource> cache)
Scan for META-INF/resources dir in the given jar.
|
void |
scanForTlds(WebAppContext context,
Resource jar,
ConcurrentHashMap<Resource,Collection<URL>> cache)
Discover META-INF/*.tld files in the given jar
|
void |
scanJars(WebAppContext context,
Collection<Resource> jars,
boolean useCaches)
Look into the jars to discover info in META-INF.
|
cloneConfigure, configure, deconfigure, destroypublic static final String USE_CONTAINER_METAINF_CACHE
public static final boolean DEFAULT_USE_CONTAINER_METAINF_CACHE
public static final String CACHED_CONTAINER_TLDS
public static final String CACHED_CONTAINER_FRAGMENTS
public static final String CACHED_CONTAINER_RESOURCES
public static final String METAINF_TLDS
public static final String METAINF_FRAGMENTS
public static final String METAINF_RESOURCES
public void preConfigure(WebAppContext context) throws Exception
ConfigurationTypically this step discovers configuration resources
preConfigure in interface ConfigurationpreConfigure in class AbstractConfigurationcontext - The context to configureExceptionpublic void scanJars(WebAppContext context, Collection<Resource> jars, boolean useCaches) throws Exception
context - jars - useCaches - Exceptionpublic void scanForResources(WebAppContext context, Resource target, ConcurrentHashMap<Resource,Resource> cache) throws Exception
context - target - cache - Exceptionpublic void scanForFragment(WebAppContext context, Resource jar, ConcurrentHashMap<Resource,Resource> cache) throws Exception
context - jar - cache - Exceptionpublic void scanForTlds(WebAppContext context, Resource jar, ConcurrentHashMap<Resource,Collection<URL>> cache) throws Exception
context - jar - cache - Exceptionpublic void postConfigure(WebAppContext context) throws Exception
ConfigurationpostConfigure in interface ConfigurationpostConfigure in class AbstractConfigurationcontext - The context to configureExceptionCopyright © 1995-2015 Webtide. All Rights Reserved.