|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.webapp.AbstractConfiguration org.eclipse.jetty.annotations.AnnotationConfiguration org.eclipse.jetty.osgi.annotations.AnnotationConfiguration
public class AnnotationConfiguration
Extend the AnnotationConfiguration to support OSGi: Look for annotations inside WEB-INF/lib and also in the fragments and required bundles. Discover them using a scanner adapted to OSGi instead of the jarscanner.
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.annotations.AnnotationConfiguration |
---|
CLASS_INHERITANCE_MAP, CONTAINER_INITIALIZERS |
Constructor Summary | |
---|---|
AnnotationConfiguration()
|
Method Summary | |
---|---|
protected AnnotationParser |
createAnnotationParser()
This parser scans the bundles using the OSGi APIs instead of assuming a jar. |
protected ClassNameResolver |
createClassNameResolver(WebAppContext context)
Returns the same classname resolver than for the webInfjar scanner |
protected ClassNameResolver |
createClassNameResolver(WebAppContext context,
boolean excludeSysClass,
boolean excludeServerClass,
boolean excludeEverythingElse,
boolean overrideIsParenLoaderIsPriority)
|
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. |
Methods inherited from class org.eclipse.jetty.annotations.AnnotationConfiguration |
---|
clearAnnotationList, cloneConfigure, configure, gatherAnnotations, getFragmentFromJar, getNonExcludedInitializers, isFromExcludedJar, isMetaDataComplete, parseContainerPath, parseWebInfClasses, preConfigure, registerServletContainerInitializerAnnotationHandlers |
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration |
---|
deconfigure, destroy, postConfigure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationConfiguration()
Method Detail |
---|
protected AnnotationParser createAnnotationParser()
createAnnotationParser
in class AnnotationConfiguration
public void parseWebInfLib(WebAppContext context, AnnotationParser parser) throws Exception
parseWebInfLib
in class AnnotationConfiguration
Exception
protected 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 scan
Exception
protected void parseWebBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle) throws Exception
context
- The webapp contextparser
- The parserwebbundle
- The current webbundlefragmentBundle
- The OSGi required bundle to scan
Exception
protected 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 webbundlefragmentBundle
- The OSGi required bundle to scan
Exception
protected void parseBundle(WebAppContext context, AnnotationParser parser, org.osgi.framework.Bundle webbundle, org.osgi.framework.Bundle bundle) throws Exception
Exception
protected ClassNameResolver createClassNameResolver(WebAppContext context)
context
-
protected ClassNameResolver createClassNameResolver(WebAppContext context, boolean excludeSysClass, boolean excludeServerClass, boolean excludeEverythingElse, boolean overrideIsParenLoaderIsPriority)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |