FileDocCategorySizeDatePackage
AppCheckMgrImpl.javaAPI DocGlassfish v2 API4890Fri May 04 22:33:26 BST 2007com.sun.enterprise.tools.verifier.app

AppCheckMgrImpl

public class AppCheckMgrImpl extends com.sun.enterprise.tools.verifier.CheckMgr implements com.sun.enterprise.tools.verifier.JarCheck
Application harness

Fields Summary
private static final String
testsListFileName
name of the file containing the list of tests for the Application architecture
private static final String
sunONETestsListFileName
Constructors Summary
public AppCheckMgrImpl(com.sun.enterprise.tools.verifier.FrameworkContext frameworkContext)


       
        this.frameworkContext = frameworkContext;
    
Methods Summary
public voidcheck(com.sun.enterprise.deployment.Descriptor descriptor)
Check application for spec. conformance

param
descriptor Application descriptor

        // run persistence tests first.
        checkPersistenceUnits(Application.class.cast(descriptor));

        if (frameworkContext.isPartition() &&
                !frameworkContext.isApp())
            return;
        // all tests for embedding application
        super.check(descriptor);
    
protected java.lang.StringgetArchiveUri(com.sun.enterprise.deployment.Descriptor descriptor)

param
descriptor
return
the name of the archive

        return ((Application) descriptor).getName();
    
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructorgetComponentNameConstructor(com.sun.enterprise.deployment.Descriptor descriptor)

        return new ComponentNameConstructor((Application)descriptor);
    
protected java.lang.StringgetSchemaVersion(com.sun.enterprise.deployment.Descriptor descriptor)

param
descriptor
return
version of spec the archive corresponds to.

        return ((RootDeploymentDescriptor) descriptor).getSpecVersion();
    
protected java.lang.StringgetSunONETestsListFileName()
return the configuration file name for the list of tests pertinent to the application scope (SunONE)

return
String filename containing the list of tests

        return sunONETestsListFileName;
    
protected java.lang.StringgetTestsListFileName()
return the configuration file name for the list of tests pertinent to the web app space (jsp and servlet)

return
String filename containing the list of tests

        return testsListFileName;
    
protected voidsetModuleName(com.sun.enterprise.tools.verifier.Result r)
Sets the module name in Result object.

param
r result object

        r.setModuleName(Result.APP);