public class AnnotationConfiguration extends AbstractConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_INHERITANCE_MAP |
static String |
CONTAINER_INITIALIZERS |
Constructor and Description |
---|
AnnotationConfiguration() |
deconfigure, destroy, postConfigure
public static final String CLASS_INHERITANCE_MAP
public static final String CONTAINER_INITIALIZERS
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 configure(WebAppContext context) throws Exception
Configuration
Typically this step applies the discovered configuration resources to
either the WebAppContext
or the associated MetaData
.
configure
in interface Configuration
configure
in class AbstractConfiguration
context
- The context to configureException
protected AnnotationParser createAnnotationParser()
public void cloneConfigure(WebAppContext template, WebAppContext context) throws Exception
Configuration
Configure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.
cloneConfigure
in interface Configuration
cloneConfigure
in class AbstractConfiguration
template
- The template contextcontext
- The context to configureException
public AnnotationParser registerServletContainerInitializerAnnotationHandlers(WebAppContext context, AnnotationParser parser, List<ServletContainerInitializer> scis) throws Exception
Exception
public boolean isFromExcludedJar(WebAppContext context, ServletContainerInitializer service) throws Exception
orderedJars
- service
- Exception
public List<ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context) throws Exception
Exception
public void parseContainerPath(WebAppContext context, AnnotationParser parser) throws Exception
Exception
public void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws Exception
Exception
public void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws Exception
Exception
public FragmentDescriptor getFragmentFromJar(Resource jar, List<FragmentDescriptor> frags) throws Exception
Exception
public boolean isMetaDataComplete(WebDescriptor d)
protected void clearAnnotationList(List<AnnotationParser.DiscoverableAnnotationHandler> handlers)
protected void gatherAnnotations(List<DiscoveredAnnotation> annotations, List<AnnotationParser.DiscoverableAnnotationHandler> handlers)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.