|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor<T>
org.objectweb.easybeans.deployment.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 | |
---|---|
private static java.lang.String |
AUTHENTICATION_TYPE
Atuthentication type attribute of the annotation. |
private static java.lang.String |
CLASS_TYPE
Class with type attribute of the annotation. |
private static java.lang.String |
DESCRIPTION
Description of the annotation. |
private JAnnotationResource |
jAnnotationResource
Internal object used representing @ Resource
annotation. |
private static java.lang.String |
NAME
Name attribute of the annotation. |
private static java.lang.String |
SHAREABLE
Shareable attribute of the annotation. |
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 org.objectweb.easybeans.deployment.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 |
---|
private static final java.lang.String NAME
private static final java.lang.String CLASS_TYPE
private static final java.lang.String AUTHENTICATION_TYPE
private static final java.lang.String SHAREABLE
private static final java.lang.String DESCRIPTION
public static final java.lang.String TYPE
private JAnnotationResource jAnnotationResource
Resource
annotation.
Constructor Detail |
---|
public JavaxAnnotationResourceVisitor(T annotationMetadata)
annotationMetadata
- linked to a class or method metadataMethod Detail |
---|
public void visit(java.lang.String name, java.lang.Object value)
visit
in interface org.objectweb.asm.AnnotationVisitor
visit
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 Type
.public void visitEnum(java.lang.String name, java.lang.String desc, java.lang.String value)
visitEnum
in interface org.objectweb.asm.AnnotationVisitor
visitEnum
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.objectweb.asm.AnnotationVisitor
visitEnd
in class AbsAnnotationVisitor<T extends IAnnotationResource>
public java.lang.String getType()
getType
in interface AnnotationType
protected 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 |