@Service(name="war") @PerLookup public class WarScanner extends ModuleScanner<WebBundleDescriptor>
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoaderHierarchy |
clh |
protected boolean |
scanOtherLibraries |
archiveFile, classLoader, classParser, deplLogger| Constructor and Description |
|---|
WarScanner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isScanOtherLibraries() |
void |
process(File archiveFile,
WebBundleDescriptor webBundleDesc,
ClassLoader classLoader)
Scan the archive file and gather a list of classes
that should be processed for anntoations
|
void |
process(ReadableArchive readableArchive,
WebBundleDescriptor webBundleDesc,
ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser)
This scanner will scan the archiveFile for annotation processing.
|
void |
setScanOtherLibraries(boolean scanOtherLibraries) |
addLibraryJars, addScanClassName, addScanDirectory, addScanJar, addScanURI, calculateResults, completeProcess, getClassLoader, getElements, getTypes, setParsergetComponentInfo, initTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentInfoprotected boolean scanOtherLibraries
@Inject protected ClassLoaderHierarchy clh
public void setScanOtherLibraries(boolean scanOtherLibraries)
public boolean isScanOtherLibraries()
public void process(File archiveFile, WebBundleDescriptor webBundleDesc, ClassLoader classLoader) throws IOException
ScannerarchiveFile - the archive file for scanningwebBundleDesc - the bundle descriptor associated with this archiveclassLoader - the classloader used to scan the annotationIOExceptionpublic void process(ReadableArchive readableArchive, WebBundleDescriptor webBundleDesc, ClassLoader classLoader, org.glassfish.hk2.classmodel.reflect.Parser parser) throws IOException
process in class ModuleScanner<WebBundleDescriptor>readableArchive - the archive to processwebBundleDesc - existing bundle descriptor to add toclassLoader - classloader to load archive classes with.IOExceptionCopyright © 2019. All rights reserved.