|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ExtensionInstallerService
is used by an extension installer
to communicate with the JNLP Client. It provides the following type of
functionality:
The normal sequence of events for an installer is:
ServiceManager.lookup("javax.jnlp.ExtensionInstallerService")
.
setStatus
, setHeading
and
updateProgress
).
setJREInfo
or setNativeLibraryInfo
depending
on if a JRE or a library is installed
installSucceeded
, otherwise invoke installFailed
.
Method Summary | |
java.net.URL |
getExtensionLocation()
Returns the location of the extension being installed |
java.lang.String |
getExtensionVersion()
Returns the version of the extension being installed |
java.lang.String |
getInstalledJRE(java.net.URL url,
java.lang.String version)
Returns the path to the executable for the given JRE. |
java.lang.String |
getInstallPath()
Returns the directory where the installer is recommended to install the extension in. |
void |
hideProgressBar()
Hides the progress bar. |
void |
hideStatusWindow()
Hides the status window. |
void |
installFailed()
This should be invoked if the install fails. |
void |
installSucceeded(boolean needsReboot)
Installers should invoke this upon a succesful installation of the extension. |
void |
setHeading(java.lang.String heading)
Updates the status of the installer process. |
void |
setJREInfo(java.lang.String platformVersion,
java.lang.String jrePath)
Informs the JNLP Client of the path to the executable for the JRE, if this is an installer for a JRE, and about platform-version this JRE implements. |
void |
setNativeLibraryInfo(java.lang.String path)
Informs the JNLP Client of a directory where it should search for native libraries. |
void |
setStatus(java.lang.String status)
Updates the status of the installer process. |
void |
updateProgress(int value)
Updates the progress bar. |
Method Detail |
public java.lang.String getInstallPath()
public java.lang.String getExtensionVersion()
public java.net.URL getExtensionLocation()
public void hideProgressBar()
updateProgress
will force it to be visible.public void hideStatusWindow()
public void setHeading(java.lang.String heading)
public void setStatus(java.lang.String status)
public void updateProgress(int value)
value
- progress bar value - should be between 0 and 100.public void installSucceeded(boolean needsReboot)
needsReboot
- If true, a reboot is neededpublic void installFailed()
public void setJREInfo(java.lang.String platformVersion, java.lang.String jrePath)
public void setNativeLibraryInfo(java.lang.String path)
public java.lang.String getInstalledJRE(java.net.URL url, java.lang.String version)
url
- product location of the JREversion
- product version of the JREnull
if the
JRE is not installed.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |