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

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

public class JavaxEjbMessageDrivenVisitor
extends AbsCommonEjbVisitor<JMessageDriven>
implements AnnotationType

This class manages the handling of @MessageDriven annotation.

Author:
Daniel Wiese

Field Summary
static java.lang.String TYPE
          Type of annotation.
 
Constructor Summary
JavaxEjbMessageDrivenVisitor(ClassAnnotationMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
 JMessageDriven getJCommonBean()
           
 java.lang.String getType()
           
 void visit(java.lang.String name, java.lang.Object value)
          Visits a primitive value of the annotation.
 org.ejb3unit.asm.jar.AnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String desc)
          Visits a nested annotation value of the annotation.
 org.ejb3unit.asm.jar.AnnotationVisitor visitArray(java.lang.String name)
          Visits an array value of the annotation.
 void visitEnd()
          Visits the end of the annotation.
 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
 
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

JavaxEjbMessageDrivenVisitor

public JavaxEjbMessageDrivenVisitor(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 AbsCommonEjbVisitor<JMessageDriven>
Parameters:
name - the value name.
value - the actual value, whose type must be Byte, Boolean, Character, Short, Integer, Long, Float, Double, String or Type.

visitEnum

public void visitEnum(java.lang.String name,
                      java.lang.String desc,
                      java.lang.String value)
Visits an enumeration value of the annotation.

Specified by:
visitEnum in interface org.ejb3unit.asm.jar.AnnotationVisitor
Overrides:
visitEnum in class AbsAnnotationVisitor<ClassAnnotationMetadata>
Parameters:
name - the value name.
desc - the class descriptor of the enumeration class.
value - the actual enumeration value.

visitAnnotation

public org.ejb3unit.asm.jar.AnnotationVisitor visitAnnotation(java.lang.String name,
                                                              java.lang.String desc)
Visits a nested annotation value of the annotation.

Specified by:
visitAnnotation in interface org.ejb3unit.asm.jar.AnnotationVisitor
Overrides:
visitAnnotation in class AbsAnnotationVisitor<ClassAnnotationMetadata>
Parameters:
name - the value name.
desc - the class descriptor of the nested annotation class.
Returns:
a non null visitor to visit the actual nested annotation value. The nested annotation value must be fully visited before calling other methods on this annotation visitor.

visitArray

public org.ejb3unit.asm.jar.AnnotationVisitor visitArray(java.lang.String name)
Visits an array value of the annotation.

Specified by:
visitArray in interface org.ejb3unit.asm.jar.AnnotationVisitor
Overrides:
visitArray in class AbsAnnotationVisitor<ClassAnnotationMetadata>
Parameters:
name - the value name.
Returns:
a non null visitor to visit the actual array value elements. The 'name' parameters passed to the methods of this visitor are ignored. All the array values must be visited before calling other methods on this annotation visitor.

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 AbsCommonEjbVisitor<JMessageDriven>

getType

public java.lang.String getType()
Specified by:
getType in interface AnnotationType
Returns:
type of the annotation (its description)

getJCommonBean

public JMessageDriven getJCommonBean()
Specified by:
getJCommonBean in class AbsCommonEjbVisitor<JMessageDriven>
Returns:
the object representing common bean.


Copyright © 2008. All Rights Reserved.