org.objectweb.easybeans.deployment.annotations.analyzer.classes
Class JavaxEjbMessageDrivenVisitor

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.analyzer.AbsAnnotationVisitor<ClassAnnotationMetadata>
      extended by org.objectweb.easybeans.deployment.annotations.analyzer.classes.JavaxEjbMessageDrivenVisitor
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, AnnotationType

public class JavaxEjbMessageDrivenVisitor
extends AbsAnnotationVisitor<ClassAnnotationMetadata>
implements AnnotationType

This class manages the handling of @MessageDriven annotation.

Author:
Florent Benoit

Nested Class Summary
(package private)  class JavaxEjbMessageDrivenVisitor.ActivationConfigPropertyVisitor
          Classes manages the parsing of activationConfig[] array of @MessageDriven annotation.
 
Field Summary
private static java.lang.String ACTIVATION_CONFIG
          activationConfig attribute of the annotation.
private static java.lang.String MESSAGE_LISTENER_INTERFACE
          messageListenerInterface attribute of the annotation.
private  java.lang.String messageListenerInterface
          Message listener Interface.
private static java.lang.String NAME
          Name attribute of the annotation.
static java.lang.String TYPE
          Type of annotation.
private  java.lang.String unqualifiedName
          Unqualified name of the bean.
 
Constructor Summary
JavaxEjbMessageDrivenVisitor(ClassAnnotationMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
 java.lang.String getType()
           
 void visit(java.lang.String name, java.lang.Object value)
          Visits a primitive value of the annotation.
 org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String desc)
          Visits a nested annotation value of the annotation.
 org.objectweb.asm.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 org.objectweb.easybeans.deployment.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

NAME

private static final java.lang.String NAME
Name attribute of the annotation.

See Also:
Constant Field Values

MESSAGE_LISTENER_INTERFACE

private static final java.lang.String MESSAGE_LISTENER_INTERFACE
messageListenerInterface attribute of the annotation.

See Also:
Constant Field Values

ACTIVATION_CONFIG

private static final java.lang.String ACTIVATION_CONFIG
activationConfig attribute of the annotation.

See Also:
Constant Field Values

unqualifiedName

private java.lang.String unqualifiedName
Unqualified name of the bean.


messageListenerInterface

private java.lang.String messageListenerInterface
Message listener Interface.

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.objectweb.asm.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 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.objectweb.asm.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.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name,
                                                           java.lang.String desc)
Visits a nested annotation value of the annotation.

Specified by:
visitAnnotation in interface org.objectweb.asm.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.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
Visits an array value of the annotation.

Specified by:
visitArray in interface org.objectweb.asm.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.objectweb.asm.AnnotationVisitor
Specified by:
visitEnd in class AbsAnnotationVisitor<ClassAnnotationMetadata>

getType

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