public abstract class AbstractAnnotationScanner extends java.lang.Object implements AnnotationScanner
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PAPAKI_METADATA_BINARY
Name of the binary metadata
|
Constructor and Description |
---|
AbstractAnnotationScanner(java.lang.String logger)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Configuration |
configure()
Configure the scanner
|
protected java.util.List<java.lang.String> |
getClassNames(java.net.URL[] urls)
Get all the class names
|
protected AnnotationRepositoryImpl |
getScan(java.io.File directory)
Check a directory for metadata
|
protected AnnotationRepositoryImpl |
getScan(java.util.jar.JarFile jarFile)
Check a JAR file for metadata
|
protected Settings |
getSettings()
Get the settings for an annotation repository
|
protected boolean |
includeClass(int modifiers)
Include class in the scan
|
protected boolean |
includeConstructor(int modifiers)
Include constructor in the scan
|
protected boolean |
includeField(int modifiers)
Include field in the scan
|
protected boolean |
includeMethod(int modifiers)
Include method in the scan
|
AnnotationRepository |
scan(java.net.URL[] urls)
Scan
|
abstract AnnotationRepository |
scan(java.net.URL[] urls,
java.lang.ClassLoader... cls)
Scan using additional classloader to resolve annotation class definitions
|
protected void |
setConfiguration(Configuration configuration)
Set configuration.
|
public static final java.lang.String PAPAKI_METADATA_BINARY
public AbstractAnnotationScanner(java.lang.String logger)
logger
- The logger namepublic Configuration configure()
configure
in interface AnnotationScanner
protected void setConfiguration(Configuration configuration)
configuration
- the configurationprotected java.util.List<java.lang.String> getClassNames(java.net.URL[] urls)
urls
- The urls to be scannedprotected AnnotationRepositoryImpl getScan(java.util.jar.JarFile jarFile)
jarFile
- The JAR filenull
if no metadata is foundprotected AnnotationRepositoryImpl getScan(java.io.File directory)
directory
- The directorynull
if no metadata is foundprotected boolean includeClass(int modifiers)
modifiers
- The modifiersprotected boolean includeField(int modifiers)
modifiers
- The modifiersprotected boolean includeConstructor(int modifiers)
modifiers
- The modifiersprotected boolean includeMethod(int modifiers)
modifiers
- The modifiersprotected Settings getSettings()
public AnnotationRepository scan(java.net.URL[] urls)
scan
in interface AnnotationScanner
urls
- The URLs with class filespublic abstract AnnotationRepository scan(java.net.URL[] urls, java.lang.ClassLoader... cls)
scan
in interface AnnotationScanner
urls
- The URLs with .class .filescls
- Additional class loadersCopyright ? 2009 Red Hat Middleware LLC (http://www.jboss.com/)