org.ow2.jonas.lib.util
Class Env

java.lang.Object
  extended by org.ow2.jonas.lib.util.Env

public class Env
extends 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
           
 
Method Summary
static int getJavaVersion()
          Gets Java Version.
static boolean isJAVA2()
           
static boolean isJAVA4()
           
static boolean isOsMacOsX()
           
static boolean isOsWindows()
           
 
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
See Also:
Constant Field Values

JAVA_1_1_7

public static final int JAVA_1_1_7
See Also:
Constant Field Values

JAVA_1_1_8

public static final int JAVA_1_1_8
See Also:
Constant Field Values

JAVA_1_2

public static final int JAVA_1_2
See Also:
Constant Field Values

JAVA_1_3

public static final int JAVA_1_3
See Also:
Constant Field Values

JAVA_1_4

public static final int JAVA_1_4
See Also:
Constant Field Values
Method Detail

isOsWindows

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

isOsMacOsX

public static boolean isOsMacOsX()
Returns:
true if the os.name starts with "Mac OS X"

getJavaVersion

public static int getJavaVersion()
Gets Java Version.

Returns:
javaVersion or -1 if error

isJAVA2

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

isJAVA4

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.