public class AnnotationConfiguration extends AbstractConfiguration
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_INHERITANCE_MAP |
static String |
CONTAINER_INITIALIZERS |
| Constructor and Description |
|---|
AnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAnnotationList(List<AnnotationParser.DiscoverableAnnotationHandler> handlers) |
void |
cloneConfigure(WebAppContext template,
WebAppContext context)
Clone configuration instance.
|
void |
configure(WebAppContext context)
Configure WebApp.
|
protected AnnotationParser |
createAnnotationParser() |
protected void |
gatherAnnotations(List<DiscoveredAnnotation> annotations,
List<AnnotationParser.DiscoverableAnnotationHandler> handlers) |
FragmentDescriptor |
getFragmentFromJar(Resource jar,
List<FragmentDescriptor> frags) |
List<javax.servlet.ServletContainerInitializer> |
getNonExcludedInitializers(WebAppContext context) |
boolean |
isFromExcludedJar(WebAppContext context,
javax.servlet.ServletContainerInitializer service)
Check to see if the ServletContainerIntializer loaded via the ServiceLoader came
from a jar that is excluded by the fragment ordering.
|
boolean |
isMetaDataComplete(WebDescriptor d) |
void |
parseContainerPath(WebAppContext context,
AnnotationParser parser) |
void |
parseWebInfClasses(WebAppContext context,
AnnotationParser parser) |
void |
parseWebInfLib(WebAppContext context,
AnnotationParser parser) |
void |
preConfigure(WebAppContext context)
Set up for configuration.
|
AnnotationParser |
registerServletContainerInitializerAnnotationHandlers(WebAppContext context,
AnnotationParser parser,
List<javax.servlet.ServletContainerInitializer> scis) |
deconfigure, destroy, postConfigurepublic static final String CLASS_INHERITANCE_MAP
public static final String CONTAINER_INITIALIZERS
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 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 Configurationconfigure in class AbstractConfigurationcontext - The context to configureExceptionprotected AnnotationParser createAnnotationParser()
public void cloneConfigure(WebAppContext template, WebAppContext context) throws Exception
ConfigurationConfigure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.
cloneConfigure in interface ConfigurationcloneConfigure in class AbstractConfigurationtemplate - The template contextcontext - The context to configureExceptionpublic AnnotationParser registerServletContainerInitializerAnnotationHandlers(WebAppContext context, AnnotationParser parser, List<javax.servlet.ServletContainerInitializer> scis) throws Exception
Exceptionpublic boolean isFromExcludedJar(WebAppContext context, javax.servlet.ServletContainerInitializer service) throws Exception
orderedJars - service - Exceptionpublic List<javax.servlet.ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context) throws Exception
Exceptionpublic void parseContainerPath(WebAppContext context, AnnotationParser parser) throws Exception
Exceptionpublic void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws Exception
Exceptionpublic void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws Exception
Exceptionpublic FragmentDescriptor getFragmentFromJar(Resource jar, List<FragmentDescriptor> frags) throws Exception
Exceptionpublic 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.