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.
Constructor Summary |
Env()
|
Method Summary |
static int |
getJavaVersion()
Gets Java Version. |
static boolean |
isDavid()
Return true if the current instance of JOnAS has been
build with David RMI |
static boolean |
isJAVA2()
return true if JDK 1.2 or later |
static boolean |
isJeremie()
Return true if the current instance of JOnAS has been
build with RMI over Jeremie |
static boolean |
isOsWindows()
Return true if the os.name starts with "Windows" |
static boolean |
isSunRMI()
Return true if the current instance of JOnAS has been
build with Sun RMI over JRMP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Env
public Env()
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
isSunRMI
public static boolean isSunRMI()
- Return true if the current instance of JOnAS has been
build with Sun RMI over JRMP
isJeremie
public static boolean isJeremie()
- Return true if the current instance of JOnAS has been
build with RMI over Jeremie
isDavid
public static boolean isDavid()
- Return true if the current instance of JOnAS has been
build with David RMI