FileDocCategorySizeDatePackage
AppClientScanner.javaAPI DocGlassfish v2 API3983Fri May 04 22:31:34 BST 2007com.sun.enterprise.deployment.annotation.impl

AppClientScanner

public class AppClientScanner extends ModuleScanner
Implementation of the Scanner interface for AppClient
author
Shing Wai Chan

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.

param
archiveFile
param
descriptor
param
classLoader

        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;
    
Methods Summary