public class DirectoryScanner extends JavaEEScanner implements Scanner<Object>
| Constructor and Description |
|---|
DirectoryScanner() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader()
Returns a ClassLoader capable of loading classes from the
underlying medium
|
Set<Class> |
getElements()
Return a complete set of classes available from this location.
|
Set<Class> |
getElements(Set<String> classNames)
Return a class instance available from this location from class name.
|
protected Set<String> |
getEntries() |
void |
process(File directory,
Object bundleDesc,
ClassLoader classLoader)
Scan the archive file and gather a list of classes
that should be processed for annotations
|
getComponentInfo, getTypes, initTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentInfo, getTypespublic void process(File directory, Object bundleDesc, ClassLoader classLoader) throws IOException
Scannerprocess in interface Scanner<Object>directory - the archive file for scanningbundleDesc - the bundle descriptor associated with this archiveclassLoader - the classloader used to scan the annotationIOExceptionpublic ClassLoader getClassLoader()
ScannergetClassLoader in interface Scanner<Object>public Set<Class> getElements()
ScannergetElements in interface Scanner<Object>public Set<Class> getElements(Set<String> classNames)
ScannergetElements in interface Scanner<Object>classNames - the list of class nameCopyright © 2020. All rights reserved.