public class AnnotationConfiguration extends AbstractConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected ClassInheritanceHandler |
_classInheritanceHandler |
protected java.util.List<ContainerInitializerAnnotationHandler> |
_containerInitializerAnnotationHandlers |
protected java.util.List<AnnotationParser.DiscoverableAnnotationHandler> |
_discoverableAnnotationHandlers |
static java.lang.String |
CLASS_INHERITANCE_MAP |
static java.lang.String |
CONTAINER_INITIALIZERS |
| Constructor and Description |
|---|
AnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
cloneConfigure(WebAppContext template,
WebAppContext context) |
void |
configure(WebAppContext context) |
protected AnnotationParser |
createAnnotationParser() |
void |
createServletContainerInitializerAnnotationHandlers(WebAppContext context,
java.util.List<javax.servlet.ServletContainerInitializer> scis) |
FragmentDescriptor |
getFragmentFromJar(Resource jar,
java.util.List<FragmentDescriptor> frags)
Get the web-fragment.xml from a jar
|
java.util.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) |
void |
preConfigure(WebAppContext context) |
deconfigure, destroypublic static final java.lang.String CLASS_INHERITANCE_MAP
public static final java.lang.String CONTAINER_INITIALIZERS
protected java.util.List<AnnotationParser.DiscoverableAnnotationHandler> _discoverableAnnotationHandlers
protected ClassInheritanceHandler _classInheritanceHandler
protected java.util.List<ContainerInitializerAnnotationHandler> _containerInitializerAnnotationHandlers
public void preConfigure(WebAppContext context) throws java.lang.Exception
preConfigure in interface ConfigurationpreConfigure in class AbstractConfigurationjava.lang.Exceptionpublic void configure(WebAppContext context) throws java.lang.Exception
configure in interface Configurationconfigure in class AbstractConfigurationjava.lang.ExceptionAbstractConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)public void postConfigure(WebAppContext context) throws java.lang.Exception
postConfigure in interface ConfigurationpostConfigure in class AbstractConfigurationjava.lang.ExceptionAbstractConfiguration.postConfigure(org.eclipse.jetty.webapp.WebAppContext)protected AnnotationParser createAnnotationParser()
public void cloneConfigure(WebAppContext template, WebAppContext context) throws java.lang.Exception
cloneConfigure in interface ConfigurationcloneConfigure in class AbstractConfigurationjava.lang.ExceptionAbstractConfiguration.cloneConfigure(org.eclipse.jetty.webapp.WebAppContext, org.eclipse.jetty.webapp.WebAppContext)public void createServletContainerInitializerAnnotationHandlers(WebAppContext context, java.util.List<javax.servlet.ServletContainerInitializer> scis) throws java.lang.Exception
context - scis - java.lang.Exceptionpublic boolean isFromExcludedJar(WebAppContext context, javax.servlet.ServletContainerInitializer service) throws java.lang.Exception
orderedJars - service - java.lang.Exceptionpublic java.util.List<javax.servlet.ServletContainerInitializer> getNonExcludedInitializers(WebAppContext context) throws java.lang.Exception
context - java.lang.Exceptionpublic void parseContainerPath(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
context - parser - java.lang.Exceptionpublic void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
context - parser - java.lang.Exceptionpublic void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
context - parser - java.lang.Exceptionpublic FragmentDescriptor getFragmentFromJar(Resource jar, java.util.List<FragmentDescriptor> frags) throws java.lang.Exception
jar - frags - java.lang.Exceptionpublic boolean isMetaDataComplete(WebDescriptor d)
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.