org.objectweb.easybeans.deployment.annotations.analyzer.classes
Class AbsCommonEjbVisitor<T extends JCommonBean>

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

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

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

Author:
Florent Benoit

Field Summary
private static java.lang.String DESCRIPTION
          description attribute of the annotation.
private static java.lang.String MAPPED_NAME
          mappedName attribute of the annotation.
private static java.lang.String NAME
          Name attribute of the annotation.
 
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 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
 
Methods inherited from interface org.objectweb.easybeans.deployment.annotations.analyzer.AnnotationType
getType
 

Field Detail

NAME

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

See Also:
Constant Field Values

MAPPED_NAME

private static final java.lang.String MAPPED_NAME
mappedName attribute of the annotation.

See Also:
Constant Field Values

DESCRIPTION

private static final java.lang.String DESCRIPTION
description attribute of the annotation.

See Also:
Constant Field Values
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.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.

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>

getJCommonBean

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