public class JarScanner extends JavaEEScanner implements Scanner<Object>
Constructor and Description |
---|
JarScanner() |
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> fileNames)
Return a class instance available from this location from class name.
|
void |
process(File jarFile,
Object bundleDesc,
ClassLoader loader)
Scan the archive file and gather a list of classes
that should be processed for annotations
|
getComponentInfo, getTypes, initTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentInfo, getTypes
public void process(File jarFile, Object bundleDesc, ClassLoader loader) throws IOException
Scanner
process
in interface Scanner<Object>
jarFile
- the archive file for scanningbundleDesc
- the bundle descriptor associated with this archiveloader
- the classloader used to scan the annotationIOException
public ClassLoader getClassLoader()
Scanner
getClassLoader
in interface Scanner<Object>
public Set<Class> getElements()
Scanner
getElements
in interface Scanner<Object>
public Set<Class> getElements(Set<String> fileNames)
Scanner
getElements
in interface Scanner<Object>
fileNames
- the list of class nameCopyright © 2020. All rights reserved.