@Service(name="car") @PerLookup public class AppClientScanner extends ModuleScanner<ApplicationClientDescriptor>
This scanner overrides process(ReadableArchive...) so that when used in the ACC it will work correctly with InputJarArchive readable archives, not just the expanded directory archives during deployment on the server.
archiveFile, classLoader, classParser, deplLogger
Constructor and Description |
---|
AppClientScanner() |
Modifier and Type | Method and Description |
---|---|
void |
process(File archiveFile,
ApplicationClientDescriptor bundleDesc,
ClassLoader classLoader)
Scan the archive file and gather a list of classes
that should be processed for anntoations
|
void |
process(ReadableArchive archive,
ApplicationClientDescriptor bundleDesc,
ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser) |
addLibraryJars, addScanClassName, addScanDirectory, addScanJar, addScanURI, calculateResults, completeProcess, getClassLoader, getElements, getTypes, setParser
getComponentInfo, initTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentInfo
public void process(ReadableArchive archive, ApplicationClientDescriptor bundleDesc, ClassLoader classLoader, org.glassfish.hk2.classmodel.reflect.Parser parser) throws IOException
process
in class ModuleScanner<ApplicationClientDescriptor>
IOException
public void process(File archiveFile, ApplicationClientDescriptor bundleDesc, ClassLoader classLoader) throws IOException
Scanner
archiveFile
- the archive file for scanningbundleDesc
- the bundle descriptor associated with this archiveclassLoader
- the classloader used to scan the annotationIOException
Copyright © 2019. All rights reserved.