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

ApplicationVerifier

public class ApplicationVerifier extends com.sun.enterprise.tools.verifier.BaseVerifier
author
Vikas Awasthi

Fields Summary
private com.sun.enterprise.deployment.Application
application
Constructors Summary
public ApplicationVerifier(com.sun.enterprise.tools.verifier.FrameworkContext frameworkContext, com.sun.enterprise.deployment.Application application)


      
                                 
        this.frameworkContext = frameworkContext;
        this.application = application;
    
Methods Summary
protected java.lang.ClassLoadercreateClassLoader()

        return application.getClassLoader();
    
protected java.lang.StringgetArchiveUri()

return
String archive base

        return frameworkContext.getJarFileName();
    
protected java.lang.StringgetClassPath()

        return null;
    
protected java.lang.String[]getDDString()

        String dd[] = {"META-INF/sun-application.xml", // NOI18N
                       "META-INF/application.xml"}; // NOI18N
        return dd;
    
public com.sun.enterprise.deployment.DescriptorgetDescriptor()

        return application;
    
public voidverify()
Responsible for running application based verifier tests on the the web archive. Called from runVerifier in {@link BaseVerifier} class.

throws
Exception

        if (areTestsNotRequired(frameworkContext.isApp()) &&
                areTestsNotRequired(frameworkContext.isPersistenceUnits()))
            return;
        preVerification();
        if(frameworkContext.isPortabilityMode())
            application.setClassLoader(context.getClassLoader());
        CheckMgr checkMgrImpl = new AppCheckMgrImpl(frameworkContext);
        verify(application, checkMgrImpl);