VistALink v1.5.0.026

gov.va.med.environment
Class Environment

java.lang.Object
  extended bygov.va.med.environment.Environment

public class Environment
extends java.lang.Object

Environment settings for J2EE server use.

Version:
1.5.0.026
Author:
Application Modernization - Foundations Team

Constructor Summary
Environment()
           
 
Method Summary
static ServerType getServerType()
          Returns the J2EE server type.
static boolean isProduction()
          Returns whether the administrator has configured the J2EE server to be "production" in a VA-medical-center sense, i.e., is this system operating on production VA data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environment

public Environment()
Method Detail

isProduction

public static boolean isProduction()
Returns whether the administrator has configured the J2EE server to be "production" in a VA-medical-center sense, i.e., is this system operating on production VA data. The source of the setting is the gov.va.med.environment.production JVM argument passed to the J2EE server upon startup. A setting of true desginates the server as a production server; any other value (including not passing the JVM argument at all) marks the server as not a VA production server.

Returns:
true if the server is a VA production server, false if not

getServerType

public static ServerType getServerType()
Returns the J2EE server type. The source of the setting is the gov.va.med.environment.servertype JVM argument passed to the J2EE server upon startup. Defaults to return UNKNOWN if the JVM argument is not present.

Returns:
ServerType: JBOSS | ORACLE | SUN_RI_13 | UNKNOWN | WEBLOGIC | JAVASE | WEBSPHERE

VistALink v1.5.0.026

VistALink v1.5.0.026