org.eclipse.jetty.annotations
Class ResourceAnnotationHandler

java.lang.Object
  extended by org.eclipse.jetty.annotations.ResourceAnnotationHandler
All Implemented Interfaces:
AnnotationParser.AnnotationHandler

public class ResourceAnnotationHandler
extends java.lang.Object
implements AnnotationParser.AnnotationHandler


Field Summary
protected  InjectionCollection _injections
           
protected  WebAppContext _wac
           
 
Constructor Summary
ResourceAnnotationHandler(WebAppContext wac)
           
 
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
 

Field Detail

_wac

protected WebAppContext _wac

_injections

protected InjectionCollection _injections
Constructor Detail

ResourceAnnotationHandler

public ResourceAnnotationHandler(WebAppContext wac)
Method Detail

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.