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

StandAloneAppClientInfo

public class StandAloneAppClientInfo extends AppClientInfo
Represents an app client that is in a stand-alone archive, not inside an enterprise app archive and not a .class file.
author
tjquinn

Fields Summary
Constructors Summary
public StandAloneAppClientInfo(boolean isJWS, Logger logger, File archive, com.sun.enterprise.deployment.archivist.Archivist archivist, String mainClassFromCommandLine)

        super(isJWS, logger, archive, archivist, mainClassFromCommandLine);
    
Methods Summary
protected booleanclassContainsAnnotation(java.lang.String entry, com.sun.enterprise.deployment.util.AnnotationDetector detector, com.sun.enterprise.deployment.deploy.shared.AbstractArchive archive, com.sun.enterprise.deployment.ApplicationClientDescriptor descriptor)

        JarFile jar = null;
        try {
            jar = new JarFile(archive.getArchiveUri());
            JarEntry mainClassEntry = jar.getJarEntry(entry);
            return detector.containsAnnotation(jar, mainClassEntry);
        } catch (Throwable thr) {
            throw new RuntimeException(localStrings.getString(
                "appclient.errorCheckingAnnos"), thr);
        } finally {
            if (jar != null) {
                try {
                    jar.close();
                } catch (IOException ioe) {
                    throw new RuntimeException(localStrings.getString(
                        "appclient.errorClosingJar", archive.getArchiveUri()), ioe);
                }
            }
        }
    
protected booleandeleteAppClientDir()

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

        InputJarArchive  appArchive = new InputJarArchive ();
        appArchive.open(file.getAbsolutePath());
        return appArchive;
    
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.getModuleDescriptor().setStandalone(true);