Class JavaPlatform
java.lang.Object
build.spin.module.java.JavaPlatform
- All Implemented Interfaces:
build.spin.Extension, build.spin.Service
A
Service providing access to the available JDKs.- Since:
- Nov-2019
- Author:
- brian.oliver
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<build.spawn.jdk.JDK> Obtains the earliest (lowest version)JDKavailable.Optional<build.spawn.jdk.JDK> Obtains the latest (highest version)JDKavailable.Optional<build.spawn.jdk.JDK> getVersion(int major) Obtains the highest availableJDKwith the specified major version.static booleanisJavaPlatformModule(String moduleName) Determines if the specified module name is for aJavaPlatformmodule.Stream<build.spawn.jdk.JDK> stream()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface build.spin.Extension
name
-
Constructor Details
-
JavaPlatform
public JavaPlatform()Constructs aJavaPlatform.
-
-
Method Details
-
stream
- Returns:
- a
StreamofJDKs
-
getVersion
-
getEarliest
-
getLatest
-
isJavaPlatformModule
Determines if the specified module name is for aJavaPlatformmodule.- Parameters:
moduleName- the module name- Returns:
trueif the specified module name is aJavaPlatformmodule,falseotherwise
-