|
|||||||||
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.JavaxPersistencePersistenceUnitVisitor<T>
T
- An implementation of IPersistenceUnit interface.public class JavaxPersistencePersistenceUnitVisitor<T extends IPersistenceUnit>
This class manages the handling of @PersistenceUnit
annotation.
Field Summary | |
---|---|
private JavaxPersistenceUnit |
javaxPersistenceUnit
Persistence context information. |
static java.lang.String |
TYPE
Type of annotation. |
private static java.lang.String |
UNIT_NAME
UnitName attribute of the annotation. |
Constructor Summary | |
---|---|
JavaxPersistencePersistenceUnitVisitor(T annotationMetadata)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getType()
|
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 org.objectweb.easybeans.deployment.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
private static final java.lang.String UNIT_NAME
private JavaxPersistenceUnit javaxPersistenceUnit
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.objectweb.asm.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 Type
.public void visitEnd()
visitEnd
in interface org.objectweb.asm.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 |