|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.apf.impl.JavaEEScanner
com.sun.enterprise.deployment.annotation.impl.ModuleScanner<T>
public abstract class ModuleScanner<T>
This is an abstract class of the Scanner interface for J2EE module.
| Field Summary | |
|---|---|
protected java.io.File |
archiveFile
|
protected java.lang.ClassLoader |
classLoader
|
protected org.glassfish.hk2.classmodel.reflect.Parser |
classParser
|
protected java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
ModuleScanner()
|
|
| Method Summary | |
|---|---|
protected void |
addLibraryJars(T bundleDesc,
ReadableArchive moduleArchive)
|
protected void |
addScanClassName(java.lang.String className)
This add extra className to be scanned. |
protected void |
addScanDirectory(java.io.File directory)
This will include all class in directory to be scanned. |
protected void |
addScanJar(java.io.File jarFile)
This add all classes in given jarFile to be scanned. |
protected void |
addScanURI(java.net.URI jarURI)
This add all classes in given jarFile to be scanned. |
protected void |
calculateResults()
|
protected void |
completeProcess(T bundleDescr,
ReadableArchive archive)
Performs all additional work after the "process" method has finished. |
java.lang.ClassLoader |
getClassLoader()
|
java.util.Set<java.lang.Class> |
getElements()
|
protected java.util.concurrent.ExecutorService |
getExecutorService()
|
org.glassfish.hk2.classmodel.reflect.Types |
getTypes()
|
void |
process(ReadableArchive archiveFile,
T bundleDesc,
java.lang.ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser)
|
protected void |
setParser(org.glassfish.hk2.classmodel.reflect.Parser parser)
|
| 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, process |
| Field Detail |
|---|
protected java.io.File archiveFile
protected java.lang.ClassLoader classLoader
protected org.glassfish.hk2.classmodel.reflect.Parser classParser
protected java.util.logging.Logger logger
| Constructor Detail |
|---|
public ModuleScanner()
| Method Detail |
|---|
public void process(ReadableArchive archiveFile,
T bundleDesc,
java.lang.ClassLoader classLoader,
org.glassfish.hk2.classmodel.reflect.Parser parser)
throws java.io.IOException
java.io.IOException
protected void completeProcess(T bundleDescr,
ReadableArchive archive)
throws java.io.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 -
java.io.IOExceptionprotected void calculateResults()
protected void addScanClassName(java.lang.String className)
className -
protected void addScanJar(java.io.File jarFile)
throws java.io.IOException
jarFile -
java.io.IOException
protected void addScanURI(java.net.URI jarURI)
throws java.io.IOException
jarURI -
java.io.IOException
protected void addScanDirectory(java.io.File directory)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface Scanner<T>public java.util.Set<java.lang.Class> getElements()
getElements in interface Scanner<T>
protected void addLibraryJars(T bundleDesc,
ReadableArchive moduleArchive)
throws java.io.IOException
java.io.IOExceptionpublic org.glassfish.hk2.classmodel.reflect.Types getTypes()
getTypes in interface Scanner<T>getTypes in class JavaEEScannerprotected java.util.concurrent.ExecutorService getExecutorService()
protected void setParser(org.glassfish.hk2.classmodel.reflect.Parser parser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||