|
|||||||||
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.JavaxPersistencePersistenceContextVisitor<T>
T
- An implementation of IPersistenceContext interface.public class JavaxPersistencePersistenceContextVisitor<T extends IPersistenceContext>
This class manages the handling of @PersistenceContext
annotation.
Field Summary | |
---|---|
private JavaxPersistenceContext |
javaxPersistenceContext
Persistence context information. |
private static java.lang.String |
NAME
name attribute of the annotation. |
private static java.lang.String |
PERSISTENCECONTEXT_TTRANSACTION_TYPE
Transaction type. |
private static java.lang.String |
PERSISTENCECONTEXT_TYPE
Persistence Context type attribute of the annotation. |
static java.lang.String |
TYPE
Type of annotation. |
private static java.lang.String |
UNIT_NAME
UnitName attribute of the annotation. |
Constructor Summary | |
---|---|
JavaxPersistencePersistenceContextVisitor(T annotationMetadata)
Constructor. |
Method Summary | |
---|---|
protected JavaxPersistenceContext |
getJavaxPersistenceContext()
|
java.lang.String |
getType()
|
protected void |
setJavaxPersistenceContext(JavaxPersistenceContext javaxPersistenceContext)
Sets the javaxPersistenceContext 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. Creates the object and store it. |
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 |
---|
public static final java.lang.String TYPE
private static final java.lang.String NAME
private static final java.lang.String UNIT_NAME
private static final java.lang.String PERSISTENCECONTEXT_TYPE
private static final java.lang.String PERSISTENCECONTEXT_TTRANSACTION_TYPE
private JavaxPersistenceContext javaxPersistenceContext
Constructor Detail |
---|
public JavaxPersistencePersistenceContextVisitor(T annotationMetadata)
annotationMetadata
- linked to a class or method or field 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 IPersistenceContext>
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 IPersistenceContext>
name
- the value name.desc
- the class descriptor of the enumeration class.value
- the actual enumeration value.protected JavaxPersistenceContext getJavaxPersistenceContext()
PersistenceContext
annotation.protected void setJavaxPersistenceContext(JavaxPersistenceContext javaxPersistenceContext)
javaxPersistenceContext
- the object which replaced the previous one.public void visitEnd()
visitEnd
in interface org.objectweb.asm.AnnotationVisitor
visitEnd
in class AbsAnnotationVisitor<T extends IPersistenceContext>
public java.lang.String getType()
getType
in interface AnnotationType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |