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()
This parser scans the bundles using the OSGi APIs instead of assuming a jar.
|
Resource |
getJarFor(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 |
parseWebInfLib(WebAppContext context,
AnnotationParser parser)
Here is the order in which jars and osgi artifacts are scanned for discoverable annotations.
|
addDiscoverableAnnotationHandler, cloneConfigure, configure, createServletContainerInitializerAnnotationHandlers, deconfigure, getFragmentFromJar, getInitializerOrdering, getMaxScanWait, getNonExcludedInitializers, isFromContainerClassPath, isFromExcludedJar, isMetaDataComplete, isUseMultiThreading, matchesExclusionPattern, parseContainerPath, parseWebInfClasses, postConfigure, preConfigure, scanForAnnotations
destroy
protected AnnotationParser createAnnotationParser()
createAnnotationParser
in class AnnotationConfiguration
public Resource getJarFor(ServletContainerInitializer service) throws MalformedURLException, IOException
getJarFor
in class AnnotationConfiguration
MalformedURLException
IOException
public void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws Exception
parseWebInfLib
in class AnnotationConfiguration
context
- the context for the scanparser
- the annotation parser to useException
- if unable to scan and/or parseprotected void parseFragmentBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle fragmentBundle) throws Exception
context
- The webapp contextparser
- The parserwebbundle
- The current webbundlefragmentBundle
- The OSGi fragment bundle to scanException
- if unable to parse fragment bundleprotected void parseWebBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle) throws Exception
context
- The webapp contextparser
- The parserwebbundle
- The current webbundleException
- if unable to parse the web bundleprotected void parseRequiredBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle requiredBundle) throws Exception
context
- The webapp contextparser
- The parserwebbundle
- The current webbundlerequiredBundle
- The OSGi required bundle to scanException
- if unable to parse the required bundleprotected void parseBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle bundle) throws Exception
Exception
Copyright © 1995–2017 Webtide. All rights reserved.