FileDocCategorySizeDatePackage
Context.javaAPI DocGlassfish v2 API9875Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier

Context

public class Context extends Object

This class provides the classloader to all the tests.

author
Sheetal Vartak

Fields Summary
private ClassLoader
classLoader
private ClassLoader
altClassLoader
private boolean
isAppserverMode
private com.sun.enterprise.deployment.deploy.shared.AbstractArchive
archive
private com.sun.enterprise.deployment.deploy.shared.Archive
moduleArchive
private com.sun.enterprise.deployment.EjbDescriptor
ejbdesc
private boolean
isXMLBasedOnSchema
private String
stdAloneUri
private Document
runtimeDoc
private Document
doc
private Document
webservicedoc
private Throwable
JDOExceptionObject
private TagLibDescriptor[]
taglibDescriptors
private com.sun.enterprise.tools.verifier.web.FacesConfigDescriptor
facesConfigDescriptor
private com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator
jdc
private com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompiler
cc
private String
classPath
private File
outDir
private String
schemaVersion
private String
javaEEVersion
private com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor
compName
Constructors Summary
public Context()


      
        classLoader = null;
    
public Context(ClassLoader classLoader)

        this.classLoader = classLoader;
    
Methods Summary
public com.sun.enterprise.deployment.deploy.shared.AbstractArchivegetAbstractArchive()
Retrieve the Abstract Archive file in test

return
String handle to current application .ear file

        return archive;
    
public java.lang.ClassLoadergetAlternateClassLoader()

        return altClassLoader;
    
public java.lang.ClassLoadergetClassLoader()

        return classLoader;
    
public java.lang.StringgetClassPath()

        return classPath;
    
public com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompilergetClosureCompiler()

        return cc;
    
public com.sun.enterprise.tools.verifier.tests.ComponentNameConstructorgetComponentNameConstructor()

        return compName;
    
public org.w3c.dom.DocumentgetDocument()

        return doc;
    
public com.sun.enterprise.deployment.EjbDescriptorgetEjbDescriptorForServiceRef()
Added for WebServices Client verification

return
The EjbDescriptor for the current ServiceReferenceDescriptor being validated by tests

        return ejbdesc;
    
public com.sun.enterprise.tools.verifier.web.FacesConfigDescriptorgetFacesConfigDescriptor()

        return facesConfigDescriptor;
    
public com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGeneratorgetJDOCodeGenerator()

        return jdc;
    
public java.lang.ThrowablegetJDOException()

        return JDOExceptionObject;
    
public java.lang.StringgetJavaEEVersion()

        return javaEEVersion;
    
public com.sun.enterprise.deployment.deploy.shared.ArchivegetModuleArchive()
This method returns the module archive while {@link #getAbstractArchive()} returns an Archive representing the application that this module is embedded in. For standalone jar/war they will return same archive The caller MUST close the archive.

return
the archive for the module archive.

        return moduleArchive;
    
public java.io.FilegetOutDir()

        return outDir;
    
public java.lang.ClassLoadergetRarClassLoader()

        return classLoader;
    
public org.w3c.dom.DocumentgetRuntimeDocument()

        return runtimeDoc;
    
public java.lang.StringgetSchemaVersion()

        return schemaVersion;
    
public java.lang.StringgetStdAloneArchiveURI()

        return stdAloneUri;

    
public TagLibDescriptor[]getTagLibDescriptors()

        return taglibDescriptors;
    
public org.w3c.dom.DocumentgetWebServiceDocument()

        return webservicedoc;
    
public booleangetisXMLBasedOnSchema()

        return isXMLBasedOnSchema;
    
public booleanisAppserverMode()

        return isAppserverMode;
    
public voidsetAbstractArchive(com.sun.enterprise.deployment.deploy.shared.AbstractArchive arch)

        archive = arch;
    
public voidsetAlternateClassLoader(java.lang.ClassLoader l)

        altClassLoader = l;
    
public voidsetAppserverMode(boolean isBackend)

        this.isAppserverMode = isBackend;
    
public voidsetClassLoader(java.lang.ClassLoader classLoader)

        this.classLoader = classLoader;
    
public voidsetClassPath(java.lang.String cp)

        classPath = cp;
    
public voidsetClosureCompiler(com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompiler cc)

        this.cc = cc;
    
public voidsetComponentNameConstructor(com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor compName)

        this.compName = compName;
    
public voidsetDocument(org.w3c.dom.Document value)

        doc = value;
    
public voidsetEjbDescriptorForServiceRef(com.sun.enterprise.deployment.EjbDescriptor desc)
Added for WebServices Client verification SET The EjbDescriptor for the current ServiceReferenceDescriptor being validated by tests

        ejbdesc = desc;
    
public voidsetFacesConfigDescriptor(com.sun.enterprise.tools.verifier.web.FacesConfigDescriptor d)

        facesConfigDescriptor = d;
    
public voidsetJDOCodeGenerator(com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator gen)

        jdc = gen;
    
public voidsetJDOException(java.lang.Throwable ex)

        JDOExceptionObject = ex;
    
public voidsetJavaEEVersion(java.lang.String v)

        javaEEVersion = v;
    
public voidsetModuleArchive(com.sun.enterprise.deployment.deploy.shared.Archive a)

        moduleArchive = a;
    
public voidsetOutDir(java.io.File outDir)

        this.outDir = outDir;
    
public voidsetRarClassLoader(java.lang.ClassLoader classLoader)

        this.classLoader = classLoader;
    
public voidsetRuntimeDocument(org.w3c.dom.Document value)

        runtimeDoc = value;
    
public voidsetSchemaVersion(java.lang.String ver)

        this.schemaVersion = ver;
    
public voidsetStdAloneArchiveURI(java.lang.String uri)

        stdAloneUri = uri;
    
public voidsetTagLibDescriptors(TagLibDescriptor[] tld)

        taglibDescriptors = tld;
    
public voidsetWebServiceDocument(org.w3c.dom.Document value)

        webservicedoc = value;