org.mule.util
Class JdkVersionUtils

java.lang.Object
  extended by org.mule.util.JdkVersionUtils

public class JdkVersionUtils
extends Object


Nested Class Summary
static class JdkVersionUtils.JdkVersion
           
static class JdkVersionUtils.JdkVersionRange
           
 
Field Summary
static Pattern JDK_VERSION
          pattern with groups for major, minor, micro, update and milestone (if exists).
 
Constructor Summary
JdkVersionUtils()
           
 
Method Summary
static List<JdkVersionUtils.JdkVersionRange> createJdkVersionRanges(String versionsString)
           
static JdkVersionUtils.JdkVersion getJdkVersion()
           
static String getRecommendedJdks()
           
static String getSupportedJdks()
           
static boolean isRecommendedJdkVersion()
           
static boolean isSupportedJdkVendor()
           
static boolean isSupportedJdkVersion()
           
static void validateJdk()
          Validates that the jdk version and vendor are acceptable values (either supported or not invalid).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JDK_VERSION

public static final Pattern JDK_VERSION
pattern with groups for major, minor, micro, update and milestone (if exists). major_version.minor_version.micro_version[_update_version][-milestone]

Constructor Detail

JdkVersionUtils

public JdkVersionUtils()
Method Detail

createJdkVersionRanges

public static List<JdkVersionUtils.JdkVersionRange> createJdkVersionRanges(String versionsString)

getJdkVersion

public static JdkVersionUtils.JdkVersion getJdkVersion()

getSupportedJdks

public static String getSupportedJdks()

isSupportedJdkVendor

public static boolean isSupportedJdkVendor()

getRecommendedJdks

public static String getRecommendedJdks()

isSupportedJdkVersion

public static boolean isSupportedJdkVersion()

isRecommendedJdkVersion

public static boolean isRecommendedJdkVersion()

validateJdk

public static void validateJdk()
                        throws RuntimeException
Validates that the jdk version and vendor are acceptable values (either supported or not invalid).

Throws:
RuntimeException - if the jdk vendor or version are invalid (known to not work)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.