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, destroy
public 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
Configuration
Typically this step discovers configuration resources
preConfigure
in interface Configuration
preConfigure
in class AbstractConfiguration
context
- The context to configureException
public void scanJars(WebAppContext context, Collection<Resource> jars, boolean useCaches) throws Exception
context
- jars
- useCaches
- Exception
public void scanForResources(WebAppContext context, Resource target, ConcurrentHashMap<Resource,Resource> cache) throws Exception
context
- target
- cache
- Exception
public void scanForFragment(WebAppContext context, Resource jar, ConcurrentHashMap<Resource,Resource> cache) throws Exception
context
- jar
- cache
- Exception
public void scanForTlds(WebAppContext context, Resource jar, ConcurrentHashMap<Resource,Collection<URL>> cache) throws Exception
context
- jar
- cache
- Exception
public void postConfigure(WebAppContext context) throws Exception
Configuration
postConfigure
in interface Configuration
postConfigure
in class AbstractConfiguration
context
- The context to configureException
Copyright © 1995-2015 Webtide. All Rights Reserved.