AppClientScannerpublic class AppClientScanner extends ModuleScanner Implementation of the Scanner interface for AppClient |
Fields Summary |
---|
private com.sun.enterprise.deployment.ApplicationClientDescriptor | descriptor |
Constructors Summary |
---|
public AppClientScanner(File archiveFile, com.sun.enterprise.deployment.ApplicationClientDescriptor desc)
this(archiveFile, desc, null);
| public AppClientScanner(File archiveFile, com.sun.enterprise.deployment.ApplicationClientDescriptor desc, ClassLoader classLoader)This scanner will scan the given main class for annotation processing.
The archiveFile and libJarFiles correspond to classpath.
if (AnnotationUtils.getLogger().isLoggable(Level.FINE)) {
AnnotationUtils.getLogger().fine("archiveFile is " + archiveFile);
AnnotationUtils.getLogger().fine("classLoader is " + classLoader);
}
this.descriptor = desc;
//always add main class
String mainClassName = desc.getMainClassName();
addScanClassName(mainClassName);
// add callback handle if it exist in appclient-client.xml
String callbackHandler = desc.getCallbackHandler();
if (callbackHandler != null && !callbackHandler.trim().equals("")) {
addScanClassName(desc.getCallbackHandler());
}
this.classLoader = classLoader;
this.archiveFile = archiveFile;
|
|