Class InstallerDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.extension.InstallerDesc
- All Implemented Interfaces:
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 $
- Author:
- Jon A. Maxwell (JAM) - initial author
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstallerDesc(String mainClass) Creates an installer descriptor element.InstallerDesc(String mainClass, String progressClass) Creates an installer descriptor element. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the class containing the public static void main(String[]) method of an installer/uninstaller for this extension.The name of a class containing an implementation of theDownloadServiceListenerinterface of applications.
-
Field Details
-
INSTALLER_DESC_ELEMENT
- See Also:
-
PROGRESS_CLASS_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
InstallerDesc
Creates an installer descriptor element.- Parameters:
mainClass- the fully qualified name of the class containing the main method of the application
-
InstallerDesc
Creates an installer descriptor element.- Parameters:
mainClass- the fully qualified name of the class containing the main method of the applicationprogressClass- the fully qualified name of the class containing an implementation of theDownloadServiceListenerinterface
-
-
Method Details
-
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:
getMainClassin interfaceEntryPoint- Returns:
- the fully qualified name of the class containing the main method of the application
-
getProgressClass
The name of a class containing an implementation of theDownloadServiceListenerinterface of applications.- Returns:
- the fully qualified name of the class containing an implementation of the
DownloadServiceListenerinterface
-