Class InstallerDesc

java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.extension.InstallerDesc
All Implemented Interfaces:
EntryPoint

public class InstallerDesc extends Object implements EntryPoint
A JNLP file is an installer extension if the installer-desc element is specified. It describes an application that is executed only once, the first time the JNLP file is used on the local system.

The installer extension is intended to install platform-specific native code that requires a more complicated setup than simply loading a native library into the JVM, such as installing a JRE or device driver. The installer executed by the JNLP Client must be a Java Technology-based application. Note that this does not limit the kind of code that can be installed or executed. For example, the installer could be a thin wrapper that executes a traditional native installer, executes a shell script, or unzips a ZIP file with native code onto the disk.

Version:
$Revision: 1.6 $
  • Field Details

    • INSTALLER_DESC_ELEMENT

      public static final String INSTALLER_DESC_ELEMENT
      See Also:
    • PROGRESS_CLASS_ATTRIBUTE

      public static final String PROGRESS_CLASS_ATTRIBUTE
      See Also:
    • mainClass

      private final String mainClass
      For Java applications this method returns the name of the class containing the public static void main(String[]) method of an installer/uninstaller for this extension. This attribute can be omitted if the main class can be found from the Main-Class manifest entry in the main JAR file.
    • progressClass

      private final String progressClass
      The name of a class containing an implementation of the DownloadServiceListener interface of applications. May be used to indicate download progress.
  • Constructor Details

    • InstallerDesc

      public InstallerDesc(String mainClass)
      Creates an installer descriptor element.
      Parameters:
      mainClass - the fully qualified name of the class containing the main method of the application
    • InstallerDesc

      public InstallerDesc(String mainClass, String progressClass)
      Creates an installer descriptor element.
      Parameters:
      mainClass - the fully qualified name of the class containing the main method of the application
      progressClass - the fully qualified name of the class containing an implementation of the DownloadServiceListener interface
  • Method Details

    • getMainClass

      public String getMainClass()
      The name of the class containing the public static void main(String[]) method of an installer/uninstaller for this extension.

      This attribute can be omitted if the main class can be found from the Main-Class manifest entry in the main JAR file.

      Specified by:
      getMainClass in interface EntryPoint
      Returns:
      the fully qualified name of the class containing the main method of the application
    • getProgressClass

      public String getProgressClass()
      The name of a class containing an implementation of the DownloadServiceListener interface of applications.
      Returns:
      the fully qualified name of the class containing an implementation of the DownloadServiceListener interface