|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JvmVendor>
com.springsource.util.env.JvmVendor
public enum JvmVendor
Identifies the vendor of a JVM implementation. The vendor of the currently running JVM can be accessed from
current()
. When no vendor can be determined, the vendor is identified as UNKNOWN
.
Enum Constant Summary | |
---|---|
APPLE
Apple. |
|
BEA
BEA Systems. |
|
IBM
IBM. |
|
SUN
Sun Microsystems. |
|
UNKNOWN
Unknown. |
Field Summary | |
---|---|
private static JvmVendor |
current
|
private java.lang.String |
identifer
|
Method Summary | |
---|---|
static JvmVendor |
current()
Gets the identifier for the vendor of the currently running JVM. |
boolean |
isOneOf(JvmVendor... jvmVendors)
Indicates whether this JvmVendor is one of the supplied list of vendors. |
static JvmVendor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JvmVendor[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JvmVendor SUN
public static final JvmVendor APPLE
public static final JvmVendor IBM
public static final JvmVendor BEA
public static final JvmVendor UNKNOWN
Field Detail |
---|
private static final JvmVendor current
private final java.lang.String identifer
Method Detail |
---|
public static JvmVendor[] values()
for (JvmVendor c : JvmVendor.values()) System.out.println(c);
public static JvmVendor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static JvmVendor current()
public boolean isOneOf(JvmVendor... jvmVendors)
JvmVendor
is one of the supplied list of vendors.
jvmVendors
- the vendors to check against.
true
if this JvmVendor
is in the supplied list, otherwise
false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |