|
||||||||||
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.JavaxPersistencePersistenceUnitVisitor<T>
T
- An implementation of IPersistenceUnit interface.public class JavaxPersistencePersistenceUnitVisitor<T extends IPersistenceUnit>
This class manages the handling of @PersistenceUnit
annotation.
Field Summary | |
---|---|
static java.lang.String |
TYPE
Type of annotation. |
Constructor Summary | |
---|---|
JavaxPersistencePersistenceUnitVisitor(T annotationMetadata)
Constructor. |
Method Summary | |
---|---|
protected JavaxPersistenceUnit |
getJavaxPersistenceUnit()
|
java.lang.String |
getType()
|
protected void |
setjavaxPersistenceUnit(JavaxPersistenceUnit javaxPersistenceUnit)
Sets the javaxPersistenceUnit 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. |
Methods inherited from class com.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor |
---|
getAnnotationMetadata, visitAnnotation, visitArray, visitEnum |
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 JavaxPersistencePersistenceUnitVisitor(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.ejb3unit.asm.jar.AnnotationVisitor
visit
in class AbsAnnotationVisitor<T extends IPersistenceUnit>
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
.protected JavaxPersistenceUnit getJavaxPersistenceUnit()
PersistenceUnit
annotation.protected void setjavaxPersistenceUnit(JavaxPersistenceUnit javaxPersistenceUnit)
javaxPersistenceUnit
- the object which replaced the previous one.public void visitEnd()
visitEnd
in interface org.ejb3unit.asm.jar.AnnotationVisitor
visitEnd
in class AbsAnnotationVisitor<T extends IPersistenceUnit>
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 |