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 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.
    • 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.