org.objectweb.common
Class Env

java.lang.Object
  |
  +--org.objectweb.common.Env

public class Env
extends java.lang.Object

This class manages global variables and properties used by EJB Server. A static design pattern is used.


Field Summary
static int JAVA_1_1_6
           
static int JAVA_1_1_7
           
static int JAVA_1_1_8
           
static int JAVA_1_2
           
static int JAVA_1_3
           
static int JAVA_1_4
           
static int orb
           
static int ORB_DAVID
           
static int ORB_JEREMIE
           
static int ORB_RMI
          possible OBJECTWEB_ORB values.
 
Constructor Summary
Env()
           
 
Method Summary
static int getJavaVersion()
          Gets Java Version.
static boolean isDavid()
          Return true if orb is David RMI
static boolean isJAVA2()
          return true if JDK 1.2 or later
static boolean isJAVA4()
          return true if JDK 1.4 or later
static boolean isJeremie()
          Return true if orb is RMI over Jeremie
static boolean isOsWindows()
          Return true if the os.name starts with "Windows"
static boolean isSunRMI()
          Return true if orb is Sun RMI over JRMP
static void setOrb(java.lang.String ow_orb)
          set the orb value this is called today by GenIC since it does not get property "objectweb.orb"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_1_1_6

public static final int JAVA_1_1_6

JAVA_1_1_7

public static final int JAVA_1_1_7

JAVA_1_1_8

public static final int JAVA_1_1_8

JAVA_1_2

public static final int JAVA_1_2

JAVA_1_3

public static final int JAVA_1_3

JAVA_1_4

public static final int JAVA_1_4

ORB_RMI

public static final int ORB_RMI
possible OBJECTWEB_ORB values.

ORB_JEREMIE

public static final int ORB_JEREMIE

ORB_DAVID

public static final int ORB_DAVID

orb

public static int orb
Constructor Detail

Env

public Env()
Method Detail

setOrb

public static void setOrb(java.lang.String ow_orb)
set the orb value this is called today by GenIC since it does not get property "objectweb.orb"

isOsWindows

public static boolean isOsWindows()
Return true if the os.name starts with "Windows"

getJavaVersion

public static int getJavaVersion()
Gets Java Version.
Returns:
javaVersion or -1 if error

isJAVA2

public static boolean isJAVA2()
return true if JDK 1.2 or later

isJAVA4

public static boolean isJAVA4()
return true if JDK 1.4 or later

isSunRMI

public static boolean isSunRMI()
Return true if orb is Sun RMI over JRMP

isJeremie

public static boolean isJeremie()
Return true if orb is RMI over Jeremie

isDavid

public static boolean isDavid()
Return true if orb is David RMI