public class JdkVersionUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JdkVersionUtils.JdkVersion |
static class |
JdkVersionUtils.JdkVersionRange |
Modifier and Type | Field and Description |
---|---|
static Pattern |
JDK_VERSION
pattern with groups for major, minor, micro, update and milestone (if exists).
|
Constructor and Description |
---|
JdkVersionUtils() |
Modifier and Type | Method and Description |
---|---|
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).
|
public static final Pattern JDK_VERSION
public static List<JdkVersionUtils.JdkVersionRange> createJdkVersionRanges(String versionsString)
public static JdkVersionUtils.JdkVersion getJdkVersion()
public static String getSupportedJdks()
public static boolean isSupportedJdkVendor()
public static String getRecommendedJdks()
public static boolean isSupportedJdkVersion()
public static boolean isRecommendedJdkVersion()
public static void validateJdk() throws RuntimeException
RuntimeException
- if the jdk vendor or version are invalid (known to not work)Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.