| |
|
| java.lang.Object org.springframework.core.JdkVersion
JdkVersion | abstract public class JdkVersion (Code) | | Internal helper class used to find the Java/JDK version
that Spring is operating on, to allow for automatically
adapting to the present platform's capabilities.
Note that Spring does not support 1.2 or earlier JVMs.
author: Rod Johnson author: Juergen Hoeller author: Rick Evans |
Field Summary | |
final public static int | JAVA_13 Constant identifying the 1.3.x JVM (JDK 1.3). | final public static int | JAVA_14 Constant identifying the 1.4.x JVM (J2SE 1.4). | final public static int | JAVA_15 Constant identifying the 1.5 JVM (Java 5). | final public static int | JAVA_16 Constant identifying the 1.6 JVM (Java 6). | final public static int | JAVA_17 Constant identifying the 1.7 JVM. |
Method Summary | |
public static String | getJavaVersion() Return the full Java version string, as returned by
System.getProperty("java.version") . | public static int | getMajorJavaVersion() Get the major version code. | public static boolean | isAtLeastJava14() Convenience method to determine if the current JVM is at least Java 1.4. | public static boolean | isAtLeastJava15() Convenience method to determine if the current JVM is at least
Java 1.5 (Java 5). |
JAVA_13 | final public static int JAVA_13(Code) | | Constant identifying the 1.3.x JVM (JDK 1.3).
|
JAVA_14 | final public static int JAVA_14(Code) | | Constant identifying the 1.4.x JVM (J2SE 1.4).
|
JAVA_15 | final public static int JAVA_15(Code) | | Constant identifying the 1.5 JVM (Java 5).
|
JAVA_16 | final public static int JAVA_16(Code) | | Constant identifying the 1.6 JVM (Java 6).
|
JAVA_17 | final public static int JAVA_17(Code) | | Constant identifying the 1.7 JVM.
|
getJavaVersion | public static String getJavaVersion()(Code) | | Return the full Java version string, as returned by
System.getProperty("java.version") .
the full Java version string See Also: System.getProperty(String) |
|
|
|