Java Reference
In-Depth Information
param Subelement
This element specifies information to be passed to the applet. Two attributes are used that
mimic closely the applet tag in HTML:
name :The name of the parameter to be set in the applet.
value :The current value for the applet parameter.
component-desc Empty Element
In large applications, it could be useful to identify software components to reuse in different
applications. When this empty element is present, the resources in the JNLP file are considered
to belong to the defined component. It has no attributes.
B
installer-desc Empty Element
When this element is present, the JNLP file is meant to describe a so-called installer extension.
That is, an application is launched only once—the first time the JNLP file is used. It has only
one attribute, the optional main-class attribute, which specifies the class to be launched
through its main(..) method.
Client Application Environment
A number of classes offer different services to the applications launched by a JNLP Client. In
order to do so, the launched applications must have the proper permissions.
Class ServiceManager
The ServiceManager class is an abstract class from which all services offered to launched
applications derive.
The ServiceManager provides static methods to look up JNLP services. Because this class is
abstract and final, it cannot be instantiated.
Requests are delegated to a ServiceManagerStub object, which must be set up by the JNLP
Client on startup using the setServiceManagerStub method.
static String[] getServiceNames()
Returns the names of all services implemented by the JNLP Client.
static Object lookup(String serviceName) throws
UnavailableServiceException
Asks the JNLP Client for a service with a given name .
static void setServiceManagerStub(ServiceManagerStub stub)
Sets the object that all lookup and getServiceNames methods are delegated to.
Search WWH ::




Custom Search