public class AnnotationConfiguration extends AnnotationConfiguration
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotationConfiguration.BundleParserTask |
AnnotationConfiguration.ClassInheritanceMap, AnnotationConfiguration.ParserTask, AnnotationConfiguration.ServletContainerInitializerComparator, AnnotationConfiguration.ServletContainerInitializerOrdering, AnnotationConfiguration.TimeStatisticConfiguration.ClassList_classInheritanceHandler, _containerInitializerAnnotationHandlers, _containerPathStats, _discoverableAnnotationHandlers, _loadedInitializers, _parserTasks, _sciExcludePattern, _webInfClassesStats, _webInfLibStats, CLASS_INHERITANCE_MAP, CONTAINER_INITIALIZER_STARTER, CONTAINER_INITIALIZERS, DEFAULT_MAX_SCAN_WAIT, DEFAULT_MULTI_THREADED, MAX_SCAN_WAIT, MULTI_THREADED, SERVLET_CONTAINER_INITIALIZER_EXCLUSION_PATTERN, SERVLET_CONTAINER_INITIALIZER_ORDERATTR| Constructor and Description |
|---|
AnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected AnnotationParser |
createAnnotationParser(int javaTargetVersion)
This parser scans the bundles using the OSGi APIs instead of assuming a jar.
|
Resource |
getJarFor(javax.servlet.ServletContainerInitializer service) |
protected void |
parseBundle(WebAppContext context,
AnnotationParser parser,
org.osgi.framework.Bundle webbundle,
org.osgi.framework.Bundle bundle) |
protected void |
parseFragmentBundle(WebAppContext context,
AnnotationParser parser,
org.osgi.framework.Bundle webbundle,
org.osgi.framework.Bundle fragmentBundle)
Scan a fragment bundle for servlet annotations
|
protected void |
parseRequiredBundle(WebAppContext context,
AnnotationParser parser,
org.osgi.framework.Bundle webbundle,
org.osgi.framework.Bundle requiredBundle)
Scan a bundle required by the webbundle for servlet annotations
|
protected void |
parseWebBundle(WebAppContext context,
AnnotationParser parser,
org.osgi.framework.Bundle webbundle)
Scan a bundle required by the webbundle for servlet annotations
|
void |
parseWebInfClasses(WebAppContext context,
AnnotationParser parser)
Scan classes in WEB-INF/classes
|
void |
parseWebInfLib(WebAppContext context,
AnnotationParser parser)
Here is the order in which jars and osgi artifacts are scanned for discoverable annotations.
|
addDiscoverableAnnotationHandler, cloneConfigure, configure, createServletContainerInitializerAnnotationHandlers, getFragmentFromJar, getInitializerOrdering, getMaxScanWait, getNonExcludedInitializers, isFromContainerClassPath, isFromExcludedJar, isFromWebInfClasses, isMetaDataComplete, isUseMultiThreading, matchesExclusionPattern, parseContainerPath, postConfigure, preConfigure, scanForAnnotationsdeconfigure, destroyprotected AnnotationParser createAnnotationParser(int javaTargetVersion)
createAnnotationParser in class AnnotationConfigurationjavaTargetVersion - The java platform to scan for.public Resource getJarFor(javax.servlet.ServletContainerInitializer service) throws java.net.MalformedURLException, java.io.IOException
getJarFor in class AnnotationConfigurationjava.net.MalformedURLExceptionjava.io.IOExceptionpublic void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
parseWebInfLib in class AnnotationConfigurationcontext - the context for the scanparser - the annotation parser to usejava.lang.Exception - if unable to scan and/or parseprotected void parseFragmentBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle fragmentBundle) throws java.lang.Exception
context - The webapp contextparser - The parserwebbundle - The current webbundlefragmentBundle - The OSGi fragment bundle to scanjava.lang.Exception - if unable to parse fragment bundleprotected void parseWebBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle) throws java.lang.Exception
context - The webapp contextparser - The parserwebbundle - The current webbundlejava.lang.Exception - if unable to parse the web bundlepublic void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
AnnotationConfigurationparseWebInfClasses in class AnnotationConfigurationcontext - the context for the scanparser - the annotation parser to usejava.lang.Exception - if unable to scan and/or parseAnnotationConfiguration.parseWebInfClasses(org.eclipse.jetty.webapp.WebAppContext, org.eclipse.jetty.annotations.AnnotationParser)protected void parseRequiredBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle requiredBundle) throws java.lang.Exception
context - The webapp contextparser - The parserwebbundle - The current webbundlerequiredBundle - The OSGi required bundle to scanjava.lang.Exception - if unable to parse the required bundleprotected void parseBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle bundle) throws java.lang.Exception
java.lang.ExceptionCopyright © 1995–2022 Webtide. All rights reserved.