|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.core.JdkVersion
public abstract class JdkVersion
Helper class used to find the current Java/JDK version.
Note that Spring does not support 1.2 JVMs.
| Field Summary | |
|---|---|
static int |
JAVA_13
Constant identifying the 1.3 JVM. |
static int |
JAVA_14
Constant identifying the 1.4 JVM. |
static int |
JAVA_15
Constant identifying the 5 (1.5) JVM. |
static int |
JAVA_16
Constant identifying the 1.6 JVM. |
static int |
JAVA_17
Constant identifying the 1.7 JVM. |
| Constructor Summary | |
|---|---|
JdkVersion()
|
|
| Method Summary | |
|---|---|
static String |
getJavaVersion()
Return the full Java version string, as returned by System.getProperty("java.version"). |
static int |
getMajorJavaVersion()
Get the major version code. |
static boolean |
isAtLeastJava14()
Convenience method to determine if the current JVM is at least Java 1.4. |
static boolean |
isAtLeastJava15()
Convenience method to determine if the current JVM is at least Java 1.5 (Java 5). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int JAVA_13
public static final int JAVA_14
public static final int JAVA_15
public static final int JAVA_16
public static final int JAVA_17
| Constructor Detail |
|---|
public JdkVersion()
| Method Detail |
|---|
public static String getJavaVersion()
System.getProperty("java.version").
System.getProperty(String)public static int getMajorJavaVersion()
if (getMajorJavaVersion() < JAVA_14).
JAVA_13,
JAVA_14,
JAVA_15public static boolean isAtLeastJava14()
true if the current JVM is at least Java 1.4getMajorJavaVersion(),
JAVA_14public static boolean isAtLeastJava15()
true if the current JVM is at least Java 1.5getMajorJavaVersion(),
JAVA_15
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||