Package com.install4j.jdk.spi
Interface JdkReleaseNode
-
- All Superinterfaces:
JdkNode
public interface JdkReleaseNode extends JdkNode
A node that describes a JDK release and its download URLs. For the arguments namedplatform
, the platform IDs inCommonPlatforms
must be used when available. Other platforms can use arbitrary IDs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getConfigKey()
Returns the config key for this release.java.lang.String
getDownloadUrl(java.lang.String platform)
Returns the download URL for a given platform.java.lang.String
getFileName(java.lang.String platform)
Returns the file name that should be used for the generated JRE bundle for a given platform.java.util.List<java.lang.String>
getPlatforms()
Returns the IDs of all available platforms for this release.-
Methods inherited from interface com.install4j.jdk.spi.JdkNode
getDisplayName
-
-
-
-
Method Detail
-
getDownloadUrl
@Nullable java.lang.String getDownloadUrl(java.lang.String platform)
Returns the download URL for a given platform. May be null if this platform is not available in this release.
-
getFileName
@Nullable java.lang.String getFileName(@NotNull java.lang.String platform)
Returns the file name that should be used for the generated JRE bundle for a given platform.
-
getConfigKey
@NotNull java.lang.String getConfigKey()
Returns the config key for this release. The config key is saved in the install4j project file and passed toJdkProvider.getByConfigKey(String)
to find a release node when the JDK is downloaded.The config key must start with the Java major version number followed by other characters, for example
11/11.0.9-b74+1
or11 FX/11.0.9-b74+1
.
-
getPlatforms
@NotNull java.util.List<java.lang.String> getPlatforms()
Returns the IDs of all available platforms for this release.
-
-