org.eclipse.jetty.annotations
Class ResourceAnnotationHandler
java.lang.Object
org.eclipse.jetty.annotations.ResourceAnnotationHandler
- All Implemented Interfaces:
- AnnotationParser.AnnotationHandler
public class ResourceAnnotationHandler
- extends java.lang.Object
- implements AnnotationParser.AnnotationHandler
Method Summary |
void |
handleClass(java.lang.String className,
int version,
int access,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
Class level Resource annotations declare a name in the
environment that will be looked up at runtime. |
void |
handleField(java.lang.String className,
java.lang.String fieldName,
int access,
java.lang.String fieldType,
java.lang.String signature,
java.lang.Object value,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
|
void |
handleMethod(java.lang.String className,
java.lang.String methodName,
int access,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
Process a Resource annotation on a Method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_wac
protected WebAppContext _wac
_injections
protected InjectionCollection _injections
ResourceAnnotationHandler
public ResourceAnnotationHandler(WebAppContext wac)
handleClass
public void handleClass(java.lang.String className,
int version,
int access,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
- Class level Resource annotations declare a name in the
environment that will be looked up at runtime. They do
not specify an injection.
- Specified by:
handleClass
in interface AnnotationParser.AnnotationHandler
handleField
public void handleField(java.lang.String className,
java.lang.String fieldName,
int access,
java.lang.String fieldType,
java.lang.String signature,
java.lang.Object value,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
- Specified by:
handleField
in interface AnnotationParser.AnnotationHandler
handleMethod
public void handleMethod(java.lang.String className,
java.lang.String methodName,
int access,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions,
java.lang.String annotation,
java.util.List<AnnotationParser.Value> values)
- Process a Resource annotation on a Method.
This will generate a JNDI entry, and an Injection to be
processed when an instance of the class is created.
- Specified by:
handleMethod
in interface AnnotationParser.AnnotationHandler
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.