Class WarScanner
- java.lang.Object
-
- org.glassfish.apf.impl.JavaEEScanner
-
- com.sun.enterprise.deployment.annotation.impl.ModuleScanner<WebBundleDescriptor>
-
- org.glassfish.web.deployment.annotation.impl.WarScanner
-
- All Implemented Interfaces:
Scanner<WebBundleDescriptor>
@Service(name="war") @PerLookup public class WarScanner extends ModuleScanner<WebBundleDescriptor>
Implementation of the Scanner interface for war.- Author:
- Shing Wai Chan
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoaderHierarchy
clh
protected boolean
scanOtherLibraries
-
Fields inherited from class com.sun.enterprise.deployment.annotation.impl.ModuleScanner
archiveFile, classLoader, classParser, deplLogger
-
-
Constructor Summary
Constructors Constructor Description WarScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 annotationsvoid
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)
-
Methods inherited from class com.sun.enterprise.deployment.annotation.impl.ModuleScanner
addLibraryJars, addScanClassName, addScanDirectory, addScanJar, addScanURI, calculateResults, completeProcess, getClassLoader, getElements, getElements, getTypes, setParser
-
Methods inherited from class org.glassfish.apf.impl.JavaEEScanner
getComponentInfo, initTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.apf.Scanner
getComponentInfo
-
-
-
-
Field Detail
-
scanOtherLibraries
protected boolean scanOtherLibraries
-
clh
@Inject protected ClassLoaderHierarchy clh
-
-
Method Detail
-
setScanOtherLibraries
public void setScanOtherLibraries(boolean scanOtherLibraries)
-
isScanOtherLibraries
public boolean isScanOtherLibraries()
-
process
public void process(File archiveFile, WebBundleDescriptor webBundleDesc, ClassLoader classLoader) throws IOException
Description copied from interface:Scanner
Scan the archive file and gather a list of classes that should be processed for annotations- Parameters:
archiveFile
- the archive file for scanningwebBundleDesc
- the bundle descriptor associated with this archiveclassLoader
- the classloader used to scan the annotation- Throws:
IOException
-
process
public void process(ReadableArchive readableArchive, WebBundleDescriptor webBundleDesc, ClassLoader classLoader, org.glassfish.hk2.classmodel.reflect.Parser parser) throws IOException
This scanner will scan the archiveFile for annotation processing.- Overrides:
process
in classModuleScanner<WebBundleDescriptor>
- Parameters:
readableArchive
- the archive to processwebBundleDesc
- existing bundle descriptor to add toclassLoader
- classloader to load archive classes with.- Throws:
IOException
-
-