com.sun.enterprise.deployment.util
Class AnnotationDetector

java.lang.Object
  extended by com.sun.enterprise.deployment.util.AnnotationDetector
Direct Known Subclasses:
ConnectorAnnotationDetector

public class AnnotationDetector
extends java.lang.Object

Abstract superclass for specific types of annotation detectors.

Author:
Jerome Dochez

Field Summary
protected  ClassFile classFile
           
protected  AnnotationScanner scanner
           
 
Constructor Summary
AnnotationDetector(AnnotationScanner scanner)
           
 
Method Summary
protected  boolean containsAnnotation(java.io.InputStream is, long size)
           
 boolean containsAnnotation(ReadableArchive archive, java.lang.String entryName)
           
 boolean hasAnnotationInArchive(ReadableArchive archive)
           
 boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classFile

protected final ClassFile classFile

scanner

protected final AnnotationScanner scanner
Constructor Detail

AnnotationDetector

public AnnotationDetector(AnnotationScanner scanner)
Method Detail

hasAnnotationInArchiveWithNoScanning

public boolean hasAnnotationInArchiveWithNoScanning(ReadableArchive archive)
                                             throws java.io.IOException
Throws:
java.io.IOException

hasAnnotationInArchive

public boolean hasAnnotationInArchive(ReadableArchive archive)
                               throws java.io.IOException
Throws:
java.io.IOException

containsAnnotation

public boolean containsAnnotation(ReadableArchive archive,
                                  java.lang.String entryName)
                           throws java.io.IOException
Throws:
java.io.IOException

containsAnnotation

protected boolean containsAnnotation(java.io.InputStream is,
                                     long size)
                              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012 GlassFish Community. All Rights Reserved.