public class AnnotationConfiguration extends AnnotationConfiguration
Modifier and Type | Class and Description |
---|---|
class |
AnnotationConfiguration.BundleParserTask |
AnnotationConfiguration.ClassInheritanceMap, AnnotationConfiguration.ParserTask, AnnotationConfiguration.ServletContainerInitializerComparator, AnnotationConfiguration.ServletContainerInitializerOrdering, AnnotationConfiguration.TimeStatistic
Configuration.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_ORDER
ATTR
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, scanForAnnotations
deconfigure, destroy
protected AnnotationParser createAnnotationParser(int javaTargetVersion)
createAnnotationParser
in class AnnotationConfiguration
javaTargetVersion
- The java platform to scan for.public Resource getJarFor(javax.servlet.ServletContainerInitializer service) throws java.net.MalformedURLException, java.io.IOException
getJarFor
in class AnnotationConfiguration
java.net.MalformedURLException
java.io.IOException
public void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws java.lang.Exception
parseWebInfLib
in class AnnotationConfiguration
context
- 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
AnnotationConfiguration
parseWebInfClasses
in class AnnotationConfiguration
context
- 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.Exception
Copyright © 1995–2023 Webtide. All rights reserved.