public final class ServiceManager extends java.lang.Object
ServiceManagerprovides static methods to lookup JNLP services. This class is final and cannot be instantiated.
Requests are delegated to a
object. This object must be set by the JNLP Client on startup using the
|Modifier and Type||Method and Description|
Returns the names of all services implemented by the JNLP Client.
Asks the JNLP Client for a service with a given name.
Sets the object that all
public static java.lang.Object lookup(java.lang.String name) throws UnavailableServiceException
name- Name of service to lookup.
nullwill never be returned. Instead an exception will be thrown.
UnavailableServiceException- if the service is not available, or if
public static java.lang.String getServiceNames()
public static void setServiceManagerStub(ServiceManagerStub stub)
getServiceNamesrequests are delegated to. The
setServiceManagerStubcall is ignored if the stub has already been set.
This method should be called exactly once by the JNLP Client, and never be called by a launched application.
stub- The ServiceManagerStub object to delegate to
Copyright © 1998, 2015, Oracle and/or its affiliates. All rights reserved.