com.bm.ejb3metadata.annotations.analyzer.classes
Class JavaxEjbEJBsVisitor

java.lang.Object
  extended by com.bm.ejb3metadata.annotations.analyzer.AbsAnnotationVisitor<T>
      extended by com.bm.ejb3metadata.annotations.analyzer.JavaxEjbEJBVisitor<ClassAnnotationMetadata>
          extended by com.bm.ejb3metadata.annotations.analyzer.classes.JavaxEjbEJBsVisitor
All Implemented Interfaces:
AnnotationType, org.ejb3unit.asm.jar.AnnotationVisitor

public class JavaxEjbEJBsVisitor
extends JavaxEjbEJBVisitor<ClassAnnotationMetadata>

This class manages the handling of @EJBs annotation.

Author:
Daniel Wiese

Field Summary
static java.lang.String TYPE
          Type of annotation.
 
Constructor Summary
JavaxEjbEJBsVisitor(ClassAnnotationMetadata 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.
 
Methods inherited from class com.bm.ejb3metadata.annotations.analyzer.JavaxEjbEJBVisitor
getJEjbEJB, setJEjbEJB
 
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

TYPE

public static final java.lang.String TYPE
Type of annotation.

See Also:
Constant Field Values
Constructor Detail

JavaxEjbEJBsVisitor

public JavaxEjbEJBsVisitor(ClassAnnotationMetadata annotationMetadata)
Constructor.

Parameters:
annotationMetadata - linked to a class or method 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 JavaxEjbEJBVisitor<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
Overrides:
visitEnd in class JavaxEjbEJBVisitor<ClassAnnotationMetadata>

getType

public java.lang.String getType()
Specified by:
getType in interface AnnotationType
Overrides:
getType in class JavaxEjbEJBVisitor<ClassAnnotationMetadata>
Returns:
type of the annotation (its description)


Copyright © 2008. All Rights Reserved.