org.eclipse.jetty.annotations
Class ResourceAnnotationHandler
java.lang.Object
org.eclipse.jetty.annotations.ResourceAnnotationHandler
- All Implemented Interfaces:
- AnnotationParser.AnnotationHandler
public class ResourceAnnotationHandler
- extends Object
- implements AnnotationParser.AnnotationHandler
Method Summary |
void |
handleClass(String className,
int version,
int access,
String signature,
String superName,
String[] interfaces,
String annotation,
List<AnnotationParser.Value> values)
Class level Resource annotations declare a name in the
environment that will be looked up at runtime. |
void |
handleField(String className,
String fieldName,
int access,
String fieldType,
String signature,
Object value,
String annotation,
List<AnnotationParser.Value> values)
|
void |
handleMethod(String className,
String methodName,
int access,
String params,
String signature,
String[] exceptions,
String annotation,
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
ResourceAnnotationHandler
public ResourceAnnotationHandler(WebAppContext wac)
handleClass
public void handleClass(String className,
int version,
int access,
String signature,
String superName,
String[] interfaces,
String annotation,
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(String className,
String fieldName,
int access,
String fieldType,
String signature,
Object value,
String annotation,
List<AnnotationParser.Value> values)
- Specified by:
handleField
in interface AnnotationParser.AnnotationHandler
handleMethod
public void handleMethod(String className,
String methodName,
int access,
String params,
String signature,
String[] exceptions,
String annotation,
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
- Parameters:
injections
-
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.