@Contract
public interface Scanner<T>
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Returns a ClassLoader capable of loading classes from the
underlying medium
|
ComponentInfo |
getComponentInfo(Class componentImpl)
Sometimes, annotations processing requires more than a single class,
especially when such classes end up being a Java Component (Java Beans,
Java EE).
|
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.
|
org.glassfish.hk2.classmodel.reflect.Types |
getTypes()
Return the types information for this module
|
void |
process(File archiveFile,
T bundleDesc,
ClassLoader classLoader)
Scan the archive file and gather a list of classes
that should be processed for annotations
|
void process(File archiveFile, T bundleDesc, ClassLoader classLoader) throws IOException
archiveFile
- the archive file for scanningbundleDesc
- the bundle descriptor associated with this archiveclassLoader
- the classloader used to scan the annotationIOException
ClassLoader getClassLoader()
Set<Class> getElements()
Set<Class> getElements(Set<String> classNames)
classNames
- the list of class nameComponentInfo getComponentInfo(Class componentImpl)
componentImpl
- class of the component.org.glassfish.hk2.classmodel.reflect.Types getTypes()
Copyright © 2021. All rights reserved.