FileDocCategorySizeDatePackage
ClassFileAppClientInfo.javaAPI DocGlassfish v2 API4674Fri May 04 22:34:12 BST 2007com.sun.enterprise.appclient

ClassFileAppClientInfo

public class ClassFileAppClientInfo extends AppClientInfo
Represents an app client specified by a .class file on the command line.
author
tjquinn

Fields Summary
private String
classFileFromCommandLine
the class file name specified on the command line
Constructors Summary
protected ClassFileAppClientInfo(boolean isJWS, Logger logger, File archive, com.sun.enterprise.deployment.archivist.Archivist archivist, String mainClassFromCommandLine, String classFileFromCommandLine)
Creates a new instance of the class file app client info.

param
isJWS whether Java Web Start was used to launch the app client
param
logger the Logger available for writing log messages
param
archive the archive containing the app client (and perhaps other files as well)
param
archivist the archivist appropriate to the type of archive being processed
param
mainClassFromCommandLine the main class command-line argument value
param
classFileFromCommandLine the class file name from the command line arguments

        super(isJWS, logger, archive, archivist, mainClassFromCommandLine);
        this.classFileFromCommandLine = classFileFromCommandLine;
    
Methods Summary
protected booleandeleteAppClientDir()

        return false;
    
protected com.sun.enterprise.deployment.deploy.shared.AbstractArchiveexpand(java.io.File file)

        FileArchive appArchive = new FileArchive();
        appArchive.open(file.getAbsolutePath());
        return appArchive;
    
protected java.lang.StringgetMainClassNameToRun(com.sun.enterprise.deployment.ApplicationClientDescriptor acDescr)

        return classFileFromCommandLine;
    
protected voidmessageDescriptor(com.sun.enterprise.deployment.RootDeploymentDescriptor d, com.sun.enterprise.deployment.archivist.Archivist archivist, com.sun.enterprise.deployment.deploy.shared.AbstractArchive archive)

        ApplicationClientDescriptor appClient = (ApplicationClientDescriptor)d;
        appClient.setMainClassName(classFileFromCommandLine);
        appClient.getModuleDescriptor().setStandalone(true);
        archivist.processAnnotations(appClient, archive);