public abstract class ModuleScanner<T>
extends org.glassfish.apf.impl.JavaEEScanner
implements org.glassfish.apf.Scanner<T>
| Modifier and Type | Field and Description |
|---|---|
protected File |
archiveFile |
protected ClassLoader |
classLoader |
protected org.glassfish.hk2.classmodel.reflect.Parser |
classParser |
static Logger |
deplLogger |
| Constructor and Description |
|---|
ModuleScanner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLibraryJars(T bundleDesc,
org.glassfish.api.deployment.archive.ReadableArchive moduleArchive) |
protected void |
addScanClassName(String className)
This add extra className to be scanned.
|
protected void |
addScanDirectory(File directory)
This will include all class in directory to be scanned.
|
protected void |
addScanJar(File jarFile)
This add all classes in given jarFile to be scanned.
|
protected void |
addScanURI(URI jarURI)
This add all classes in given jarFile to be scanned.
|
protected void |
calculateResults() |
protected void |
completeProcess(T bundleDescr,
org.glassfish.api.deployment.archive.ReadableArchive archive)
Performs all additional work after the "process" method has finished.
|
ClassLoader |
getClassLoader() |
Set<Class> |
getElements() |
protected ExecutorService |
getExecutorService() |
org.glassfish.hk2.classmodel.reflect.Types |
getTypes() |
void |
process(org.glassfish.api.deployment.archive.ReadableArchive archiveFile,
T bundleDesc,
ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser) |
protected void |
setParser(org.glassfish.hk2.classmodel.reflect.Parser parser) |
protected File archiveFile
protected ClassLoader classLoader
protected org.glassfish.hk2.classmodel.reflect.Parser classParser
public static final Logger deplLogger
public void process(org.glassfish.api.deployment.archive.ReadableArchive archiveFile,
T bundleDesc,
ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser)
throws IOException
IOExceptionprotected void completeProcess(T bundleDescr, org.glassfish.api.deployment.archive.ReadableArchive archive) throws IOException
This is a separate method from "process" so that the app client scanner can invoke it from its overriding process method. All post-processing logic needs to be collected in this one place.
bundleDescr - archive - IOExceptionprotected void calculateResults()
protected void addScanClassName(String className)
className - protected void addScanJar(File jarFile) throws IOException
jarFile - IOExceptionprotected void addScanURI(URI jarURI) throws IOException
jarURI - IOExceptionprotected void addScanDirectory(File directory) throws IOException
IOExceptionpublic ClassLoader getClassLoader()
getClassLoader in interface org.glassfish.apf.Scanner<T>public Set<Class> getElements()
getElements in interface org.glassfish.apf.Scanner<T>protected void addLibraryJars(T bundleDesc, org.glassfish.api.deployment.archive.ReadableArchive moduleArchive)
public org.glassfish.hk2.classmodel.reflect.Types getTypes()
getTypes in interface org.glassfish.apf.Scanner<T>getTypes in class org.glassfish.apf.impl.JavaEEScannerprotected ExecutorService getExecutorService()
protected void setParser(org.glassfish.hk2.classmodel.reflect.Parser parser)
Copyright © 2013. All Rights Reserved.