| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor<T>
com.bm.ejb3metadata.annotations.analyzer.JavaxAnnotationResourceVisitor<T>
T - An implementation of IAnnotationResource interface.public class JavaxAnnotationResourceVisitor<T extends IAnnotationResource>
This class manages the handling of @Resource
 annotation.
| Field Summary | |
|---|---|
static java.lang.String | 
TYPE
Type of annotation.  | 
| Constructor Summary | |
|---|---|
JavaxAnnotationResourceVisitor(T annotationMetadata)
Constructor.  | 
|
| Method Summary | |
|---|---|
protected  JAnnotationResource | 
getJAnnotationResource()
 | 
 java.lang.String | 
getType()
 | 
protected  void | 
setJAnnotationResource(JAnnotationResource jAnnotationResource)
Sets the jAnnotationResource object.  | 
 void | 
visit(java.lang.String name,
      java.lang.Object value)
Visits a primitive value of the annotation.  | 
 void | 
visitEnd()
Visits the end of the annotation.  | 
 void | 
visitEnum(java.lang.String name,
          java.lang.String desc,
          java.lang.String value)
Visits an enumeration value of the annotation.  | 
| Methods inherited from class com.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor | 
|---|
getAnnotationMetadata, visitAnnotation, visitArray | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String TYPE
| Constructor Detail | 
|---|
public JavaxAnnotationResourceVisitor(T annotationMetadata)
annotationMetadata - linked to a class or method metadata| Method Detail | 
|---|
public void visit(java.lang.String name,
                  java.lang.Object value)
visit in interface org.ejb3unit.asm.jar.AnnotationVisitorvisit in class AbsAnnotationVisitor<T extends IAnnotationResource>name - the value name.value - the actual value, whose type must be Byte,
        Boolean, Character, Short,
        Integer, Long, Float, Double,
        String or org.ejb3unit.asm.Type.
public void visitEnum(java.lang.String name,
                      java.lang.String desc,
                      java.lang.String value)
visitEnum in interface org.ejb3unit.asm.jar.AnnotationVisitorvisitEnum in class AbsAnnotationVisitor<T extends IAnnotationResource>name - the value name.desc - the class descriptor of the enumeration class.value - the actual enumeration value.public void visitEnd()
visitEnd in interface org.ejb3unit.asm.jar.AnnotationVisitorvisitEnd in class AbsAnnotationVisitor<T extends IAnnotationResource>public java.lang.String getType()
getType in interface AnnotationTypeprotected JAnnotationResource getJAnnotationResource()
Resource
         annotation.protected void setJAnnotationResource(JAnnotationResource jAnnotationResource)
jAnnotationResource - the object which replaced the previous one.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||