org.objectweb.easybeans.deployable
Class DeployableDetectVisitor

java.lang.Object
  extended by org.objectweb.asm.commons.EmptyVisitor
      extended by org.objectweb.easybeans.deployable.DeployableDetectVisitor
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor

public class DeployableDetectVisitor
extends org.objectweb.asm.commons.EmptyVisitor

This visitor try to find the type of an archive.

Author:
Florent Benoit

Field Summary
private  ArchiveType archiveType
          Type of the archive.
private static java.lang.String MDB_ANNOTATION
          MDB annotation.
private static java.lang.String STATEFUL_ANNOTATION
          Stateful annotation.
private static java.lang.String STATELESS_ANNOTATION
          Stateless annotation.
 
Constructor Summary
DeployableDetectVisitor()
           
 
Method Summary
 ArchiveType getArchiveType()
          Gets the archive type.
 org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
          Visits an annotation of the class.
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visit, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitCode, visitEnd, visitEnum, visitField, visitFieldInsn, visitFrame, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

archiveType

private ArchiveType archiveType
Type of the archive.


MDB_ANNOTATION

private static final java.lang.String MDB_ANNOTATION
MDB annotation.

See Also:
Constant Field Values

STATELESS_ANNOTATION

private static final java.lang.String STATELESS_ANNOTATION
Stateless annotation.

See Also:
Constant Field Values

STATEFUL_ANNOTATION

private static final java.lang.String STATEFUL_ANNOTATION
Stateful annotation.

See Also:
Constant Field Values
Constructor Detail

DeployableDetectVisitor

public DeployableDetectVisitor()
Method Detail

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc,
                                                           boolean visible)
Visits an annotation of the class.

Specified by:
visitAnnotation in interface org.objectweb.asm.ClassVisitor
Specified by:
visitAnnotation in interface org.objectweb.asm.FieldVisitor
Specified by:
visitAnnotation in interface org.objectweb.asm.MethodVisitor
Overrides:
visitAnnotation in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
desc - the class descriptor of the annotation class.
visible - true if the annotation is visible at runtime.
Returns:
a non null visitor to visit the annotation values.

getArchiveType

public ArchiveType getArchiveType()
Gets the archive type.

Returns:
the archive type.