Class InstallerDesc
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.jnlp.element.extension.InstallerDesc
-
- All Implemented Interfaces:
EntryPoint
public class InstallerDesc extends java.lang.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 Summary
Fields Modifier and Type Field Description static java.lang.StringINSTALLER_DESC_ELEMENTprivate java.lang.StringmainClassFor 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.static java.lang.StringPROGRESS_CLASS_ATTRIBUTEprivate java.lang.StringprogressClassThe name of a class containing an implementation of theDownloadServiceListenerinterface of applications.
-
Constructor Summary
Constructors Constructor Description InstallerDesc(java.lang.String mainClass)Creates an installer descriptor element.InstallerDesc(java.lang.String mainClass, java.lang.String progressClass)Creates an installer descriptor element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMainClass()The name of the class containing the public static void main(String[]) method of an installer/uninstaller for this extension.java.lang.StringgetProgressClass()The name of a class containing an implementation of theDownloadServiceListenerinterface of applications.
-
-
-
Field Detail
-
INSTALLER_DESC_ELEMENT
public static final java.lang.String INSTALLER_DESC_ELEMENT
- See Also:
- Constant Field Values
-
PROGRESS_CLASS_ATTRIBUTE
public static final java.lang.String PROGRESS_CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
-
mainClass
private final java.lang.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 java.lang.String progressClass
The name of a class containing an implementation of theDownloadServiceListenerinterface of applications. May be used to indicate download progress.
-
-
Constructor Detail
-
InstallerDesc
public InstallerDesc(java.lang.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(java.lang.String mainClass, java.lang.String progressClass)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 Detail
-
getMainClass
public java.lang.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:
getMainClassin interfaceEntryPoint- Returns:
- the fully qualified name of the class containing the main method of the application
-
getProgressClass
public java.lang.String 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
-
-