Class AnnotationParser
- java.lang.Object
-
- org.eclipse.jetty.annotations.AnnotationParser
-
- org.eclipse.jetty.osgi.annotations.AnnotationParser
-
public class AnnotationParser extends AnnotationParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.annotations.AnnotationParser
AnnotationParser.AbstractHandler, AnnotationParser.ClassInfo, AnnotationParser.FieldInfo, AnnotationParser.Handler, AnnotationParser.MethodInfo, AnnotationParser.MyClassVisitor, AnnotationParser.MyFieldVisitor, AnnotationParser.MyMethodVisitor
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.annotations.AnnotationParser
_parsedClassNames
-
-
Constructor Summary
Constructors Constructor Description AnnotationParser(int javaPlatform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.osgi.framework.BundlegetBundle(Resource resource)protected ResourcegetResource(org.osgi.framework.Bundle bundle)protected java.net.URIgetURI(org.osgi.framework.Bundle bundle)ResourceindexBundle(org.osgi.framework.Bundle bundle)Keep track of a jetty URI Resource and its associated OSGi bundle.voidparse(java.util.Set<? extends AnnotationParser.Handler> handlers, java.net.URI[] uris)Parse classes in the supplied uris.voidparse(java.util.Set<? extends AnnotationParser.Handler> handlers, org.osgi.framework.Bundle bundle)-
Methods inherited from class org.eclipse.jetty.annotations.AnnotationParser
addParsedClass, getParsedLocations, isValidClassFileName, isValidClassFilePath, normalize, normalize, parse, parse, parse, parse, parse, parse, parse, parseDir, parseJar, parseJarEntry, resetParsedClasses, scanClass
-
-
-
-
Method Detail
-
indexBundle
public Resource indexBundle(org.osgi.framework.Bundle bundle) throws java.lang.Exception
Keep track of a jetty URI Resource and its associated OSGi bundle.- Parameters:
bundle- the bundle to index- Returns:
- the resource for the bundle
- Throws:
java.lang.Exception- if unable to create the resource reference
-
getURI
protected java.net.URI getURI(org.osgi.framework.Bundle bundle)
-
getResource
protected Resource getResource(org.osgi.framework.Bundle bundle)
-
getBundle
protected org.osgi.framework.Bundle getBundle(Resource resource)
-
parse
public void parse(java.util.Set<? extends AnnotationParser.Handler> handlers, java.net.URI[] uris) throws java.lang.Exception
Description copied from class:AnnotationParserParse classes in the supplied uris.- Overrides:
parsein classAnnotationParser- Parameters:
handlers- the handlers to look for classes inuris- the uris for the jars- Throws:
java.lang.Exception- if unable to parse
-
parse
public void parse(java.util.Set<? extends AnnotationParser.Handler> handlers, org.osgi.framework.Bundle bundle) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-