com.bm.ejb3metadata.annotations.analyzer.classes
Class AbsCommonEjbVisitor<T extends JCommonBean>

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor<ClassAnnotationMetadata>
      extended by com.bm.ejb3metadata.annotations.analyzer.classes.AbsCommonEjbVisitor<T>
Type Parameters:
T - a class extending JCommonBean.
All Implemented Interfaces:
AnnotationType, org.ejb3unit.asm.jar.AnnotationVisitor
Direct Known Subclasses:
JavaxEjbMessageDrivenVisitor, JavaxEjbStatefulVisitor, JavaxEjbStatelessVisitor, JBossEjbServiceVisitor

public abstract class AbsCommonEjbVisitor<T extends JCommonBean>
extends AbsAnnotationVisitor<ClassAnnotationMetadata>

This class manages the handling of common annotations used by beans.

Author:
Daniel Wiese

Constructor Summary
AbsCommonEjbVisitor(ClassAnnotationMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
abstract  T getJCommonBean()
           
 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.
 
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
 
Methods inherited from interface com.bm.ejb3metadata.annotations.analyzer.AnnotationType
getType
 

Constructor Detail

AbsCommonEjbVisitor

public AbsCommonEjbVisitor(ClassAnnotationMetadata classAnnotationMetadata)
Constructor.

Parameters:
classAnnotationMetadata - linked to a class metadata
Method Detail

visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Visits a primitive value of the annotation.

Specified by:
visit in interface org.ejb3unit.asm.jar.AnnotationVisitor
Overrides:
visit in class AbsAnnotationVisitor<ClassAnnotationMetadata>
Parameters:
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.

visitEnd

public void visitEnd()
Visits the end of the annotation.
Creates the object and store it.

Specified by:
visitEnd in interface org.ejb3unit.asm.jar.AnnotationVisitor
Specified by:
visitEnd in class AbsAnnotationVisitor<ClassAnnotationMetadata>

getJCommonBean

public abstract T getJCommonBean()
Returns:
the object used by all beans.


Copyright © 2008. All Rights Reserved.