|
||||||||||
| 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.JavaxPersistencePersistenceContextVisitor<T>
T - An implementation of IPersistenceContext interface.public class JavaxPersistencePersistenceContextVisitor<T extends IPersistenceContext>
This class manages the handling of @PersistenceContext
annotation.
| Field Summary | |
|---|---|
static java.lang.String |
TYPE
Type of 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 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 JavaxPersistencePersistenceContextVisitor(T annotationMetadata)
annotationMetadata - linked to a class or method or field 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 IPersistenceContext>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 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.ejb3unit.asm.jar.AnnotationVisitorvisitEnd 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 | |||||||||