Package org.glassfish.deployment.common
Class GenericAnnotationDetector
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- org.glassfish.deployment.common.AnnotationScanner
-
- org.glassfish.deployment.common.GenericAnnotationDetector
-
public class GenericAnnotationDetector extends AnnotationScanner
This class will detect whether an archive contains specified annotations.
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
deplLogger
-
Constructor Summary
Constructors Constructor Description GenericAnnotationDetector(Class[] annotationClasses)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasAnnotationInArchive(ReadableArchive archive)
void
scanArchive(ReadableArchive archive)
org.objectweb.asm.AnnotationVisitor
visitAnnotation(String s, boolean b)
-
Methods inherited from class org.glassfish.deployment.common.AnnotationScanner
visit, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
-
-
-
-
Field Detail
-
deplLogger
public static final Logger deplLogger
-
-
Constructor Detail
-
GenericAnnotationDetector
public GenericAnnotationDetector(Class[] annotationClasses)
-
-
Method Detail
-
hasAnnotationInArchive
public boolean hasAnnotationInArchive(ReadableArchive archive)
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String s, boolean b)
- Overrides:
visitAnnotation
in classAnnotationScanner
-
scanArchive
public void scanArchive(ReadableArchive archive)
- Overrides:
scanArchive
in classAnnotationScanner
-
-