FileDocCategorySizeDatePackage
Environment.javaAPI DocGlassfish v2 API2936Fri May 04 22:35:58 BST 2007com.sun.enterprise.util

Environment

public class Environment extends Object
Environment class that contains information about from where this appserver instance is being invoked from

Fields Summary
private static String
ENV_CLASS_NAME
Constructors Summary
protected Environment()


      
    
Methods Summary
public voidactivateEnvironment()

        return;
    
public static com.sun.enterprise.util.Environmentobtain()

        Environment e = new Environment();
        try {
            Object obj = java.security.AccessController.doPrivileged
                (new java.security.PrivilegedExceptionAction() {
                public java.lang.Object run() throws Exception {
                    return Class.forName(ENV_CLASS_NAME).newInstance();
                }
            });
            if (obj != null) {
                e = (Environment) obj;
            }
        } catch (Exception ex) {
        }
        return e;