java.lang.Object | |
↳ | org.springframework.core.JdkVersion |
Internal helper class used to find the Java/JVM version that Spring is operating on, to allow for automatically adapting to the present platform's capabilities.
Note that Spring requires JVM 1.5 or higher, as of Spring 3.0.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | JAVA_13 | Constant identifying the 1.3.x JVM (JDK 1.3). | |||||||||
int | JAVA_14 | Constant identifying the 1.4.x JVM (J2SE 1.4). | |||||||||
int | JAVA_15 | Constant identifying the 1.5 JVM (Java 5). | |||||||||
int | JAVA_16 | Constant identifying the 1.6 JVM (Java 6). | |||||||||
int | JAVA_17 | Constant identifying the 1.7 JVM (Java 7). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the full Java version string, as returned by
System.getProperty("java.version") . | |||||||||||
Get the major version code.
| |||||||||||
This method is deprecated.
as of Spring 3.0 which requires Java 1.5+
| |||||||||||
This method is deprecated.
as of Spring 3.0 which requires Java 1.5+
| |||||||||||
This method is deprecated.
as of Spring 3.0, in favor of reflective checks for
the specific Java 1.6 classes of interest
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constant identifying the 1.3.x JVM (JDK 1.3).
Constant identifying the 1.4.x JVM (J2SE 1.4).
Constant identifying the 1.5 JVM (Java 5).
Constant identifying the 1.6 JVM (Java 6).
Constant identifying the 1.7 JVM (Java 7).
Return the full Java version string, as returned by
System.getProperty("java.version")
.
This method is deprecated.
as of Spring 3.0 which requires Java 1.5+
Convenience method to determine if the current JVM is at least Java 1.4.
true
if the current JVM is at least Java 1.4
This method is deprecated.
as of Spring 3.0 which requires Java 1.5+
Convenience method to determine if the current JVM is at least Java 1.5 (Java 5).
true
if the current JVM is at least Java 1.5
This method is deprecated.
as of Spring 3.0, in favor of reflective checks for
the specific Java 1.6 classes of interest
Convenience method to determine if the current JVM is at least Java 1.6 (Java 6).
true
if the current JVM is at least Java 1.6