com.tarantella.tta.webservices
Class ServiceLocatorHolder
java.lang.Object
com.tarantella.tta.webservices.ServiceLocatorHolder
- All Implemented Interfaces:
- java.io.Serializable
public class ServiceLocatorHolder
- extends java.lang.Object
- implements java.io.Serializable
The ServiceLocatorHolder class is a convenient place to store the
IServiceLocator
interface used to access the Secure Global
Desktop web services.
A developer can select a preferred implementation of web services by
implementing an IServiceLocator
interface and setting it in the
ServiceLocatorHolder.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceLocatorHolder
public ServiceLocatorHolder()
setLocator
public static void setLocator(IServiceLocator locator)
- Stores the service locator
- Parameters:
locator
- IServiceLocator
to be stored- Since:
- 1.0
getLocator
public static IServiceLocator getLocator()
- Returns a service locator.
If no service locator has been set via
setLocator(IServiceLocator)
, it returns a service locator for the
default implementation of web services.
- Returns:
- An
IServiceLocator
interface. - Since:
- 1.0