Interface JdkReleaseNode

All Superinterfaces:
JdkNode

public interface JdkReleaseNode extends JdkNode
A node that describes a JDK release and its download URLs. For the arguments named platform, the platform IDs in CommonPlatforms must be used when available. Other platforms can use arbitrary IDs.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the config key for this release.
    Returns the download URL for a given platform.
    getFileName(String platform)
    Returns the file name that should be used for the generated JRE bundle for a given platform.
    The java version in the format of the "java.version" system property.
    default String
    getJmodsUrl(String platform)
    Returns the optional separate jmods download URL for a given platform.
    Returns the IDs of all available platforms for this release.

    Methods inherited from interface com.install4j.jdk.spi.JdkNode

    getDisplayName
  • Method Details

    • getDownloadUrl

      @Nullable String getDownloadUrl(String platform)
      Returns the download URL for a given platform. May be null if this platform is not available in this release.
    • getJmodsUrl

      @Nullable default String getJmodsUrl(String platform)
      Returns the optional separate jmods download URL for a given platform. May be null if this platform is not available in this release or if there is no separate jmods download for this platform.
    • getFileName

      @Nullable String getFileName(@NotNull String platform)
      Returns the file name that should be used for the generated JRE bundle for a given platform.
    • getConfigKey

      @NotNull String getConfigKey()
      Returns the config key for this release. The config key is saved in the install4j project file and passed to JdkProvider.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 or 11 FX/11.0.9-b74+1.

    • getPlatforms

      @NotNull List<String> getPlatforms()
      Returns the IDs of all available platforms for this release.
    • getJavaVersion

      @NotNull String getJavaVersion()
      The java version in the format of the "java.version" system property.