public class AnnotationConfiguration extends AbstractConfiguration
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotationConfiguration.ContainerClassNameResolver
ContainerClassNameResolver
Checks to see if a classname belongs to a hidden or visible package
when scanning for annotations and thus whether it should be excluded from
consideration or not.
|
class |
AnnotationConfiguration.WebAppClassNameResolver
WebAppClassNameResolver
Checks to see if a classname belongs to hidden or visible packages when scanning,
and whether a classname that is a duplicate should override a previously
scanned classname.
|
Configuration.ClassList| Modifier and Type | Field and Description |
|---|---|
protected ClassInheritanceHandler |
_classInheritanceHandler |
protected List<ContainerInitializerAnnotationHandler> |
_containerInitializerAnnotationHandlers |
protected List<AnnotationParser.DiscoverableAnnotationHandler> |
_discoverableAnnotationHandlers |
static String |
CLASS_INHERITANCE_MAP |
static String |
CONTAINER_INITIALIZER_LISTENER |
static String |
CONTAINER_INITIALIZERS |
ATTR| Constructor and Description |
|---|
AnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneConfigure(WebAppContext template,
WebAppContext context)
Clone configuration instance.
|
void |
configure(WebAppContext context)
Configure WebApp.
|
protected AnnotationParser |
createAnnotationParser() |
void |
createServletContainerInitializerAnnotationHandlers(WebAppContext context,
List<javax.servlet.ServletContainerInitializer> scis) |
void |
deconfigure(WebAppContext context)
DeConfigure WebApp.
|
FragmentDescriptor |
getFragmentFromJar(Resource jar,
List<FragmentDescriptor> frags)
Get the web-fragment.xml from a jar
|
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)
Scan jars on container path.
|
void |
parseWebInfClasses(WebAppContext context,
AnnotationParser parser)
Scan classes in WEB-INF/classes
|
void |
parseWebInfLib(WebAppContext context,
AnnotationParser parser)
Scan jars in WEB-INF/lib
|
void |
postConfigure(WebAppContext context)
Clear down after configuration.
|
void |
preConfigure(WebAppContext context)
Set up for configuration.
|
destroypublic static final String CLASS_INHERITANCE_MAP
public static final String CONTAINER_INITIALIZERS
public static final String CONTAINER_INITIALIZER_LISTENER
protected List<AnnotationParser.DiscoverableAnnotationHandler> _discoverableAnnotationHandlers
protected ClassInheritanceHandler _classInheritanceHandler
protected List<ContainerInitializerAnnotationHandler> _containerInitializerAnnotationHandlers
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 deconfigure(WebAppContext context) throws Exception
Configurationdeconfigure in interface Configurationdeconfigure 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 configureExceptionAbstractConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)public void postConfigure(WebAppContext context) throws Exception
ConfigurationpostConfigure in interface ConfigurationpostConfigure in class AbstractConfigurationcontext - The context to configureExceptionAbstractConfiguration.postConfigure(org.eclipse.jetty.webapp.WebAppContext)protected 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 configureExceptionAbstractConfiguration.cloneConfigure(org.eclipse.jetty.webapp.WebAppContext, org.eclipse.jetty.webapp.WebAppContext)public void createServletContainerInitializerAnnotationHandlers(WebAppContext context, List<javax.servlet.ServletContainerInitializer> scis) throws Exception
context - scis - Exceptionpublic boolean isFromExcludedJar(WebAppContext context, javax.servlet.ServletContainerInitializer service) throws Exception
context - service - Exceptionpublic List<javax.servlet.ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context) throws Exception
context - Exceptionpublic void parseContainerPath(WebAppContext context, AnnotationParser parser) throws Exception
context - parser - Exceptionpublic void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws Exception
context - parser - Exceptionpublic void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws Exception
context - parser - Exceptionpublic FragmentDescriptor getFragmentFromJar(Resource jar, List<FragmentDescriptor> frags) throws Exception
jar - frags - Exceptionpublic boolean isMetaDataComplete(WebDescriptor d)
Copyright © 1995–2013 Mort Bay Consulting. All rights reserved.