Class JavaEnvironment

java.lang.Object
org.apache.shiro.util.JavaEnvironment

@Deprecated public abstract class JavaEnvironment extends Object
Deprecated.
This class is no longer used in Shiro and will be removed in the next major version.
Internal helper class used to find the Java/JDK version that Shiro is operating within, to allow for automatically adapting to the present platform's capabilities.

Note that Shiro does not support 1.2 or earlier JVMs - only 1.3 and later.

This class was borrowed and heavily based upon a nearly identical version found in the Spring Framework, with minor modifications. The original author names and copyright (Apache 2.0) has been left in place. A special thanks to Rod Johnson, Juergen Hoeller, and Rick Evans for making this available.

Since:
0.2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
    Constant identifying the 1.3.x JVM (JDK 1.3).
    static final int
    Deprecated.
    Constant identifying the 1.4.x JVM (J2SE 1.4).
    static final int
    Deprecated.
    Constant identifying the 1.5 JVM (Java 5).
    static final int
    Deprecated.
    Constant identifying the 1.6 JVM (Java 6).
    static final int
    Deprecated.
    Constant identifying the 1.7 JVM.
    static final int
    Deprecated.
    Constant identifying the 1.8 JVM.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    Deprecated.
    Get the major version code.
    static String
    Deprecated.
    Return the full Java version string, as returned by System.getProperty("java.version").
    static boolean
    Deprecated.
    Convenience method to determine if the current JVM is at least Java 1.4.
    static boolean
    Deprecated.
    Convenience method to determine if the current JVM is at least Java 1.5 (Java 5).
    static boolean
    Deprecated.
    Convenience method to determine if the current JVM is at least Java 1.6 (Java 6).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait