com.ibm.itim.remoteservices.provider
Class ServiceProviderLocator
java.lang.Object
|
+--com.ibm.itim.remoteservices.provider.ServiceProviderLocator
- public class ServiceProviderLocator
- extends java.lang.Object
Locates the correct ServiceProviderFactory and uses it to creates a
ServiceProvider. The ServiceProviderInfo should be constructed based on
the service identifier. Caches ServiceProviderFactory implementations
matching particular service instances.
Field Summary |
static java.lang.String |
DEFAULT_FACTORY
The default ServiceProviderFactory assumed if there is none specified
in the resource definition factory. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FACTORY
public static final java.lang.String DEFAULT_FACTORY
- The default ServiceProviderFactory assumed if there is none specified
in the resource definition factory.
getInstance
public static ServiceProviderLocator getInstance()
- Get the instance of ServiceProviderLocator.
getServiceProvider
public ServiceProvider getServiceProvider(ServiceProviderInformation serviceProviderInfo)
throws ProviderConfigurationException
- Get the service provider info for the given service, get an
instance of the ServiceProvider class. The factory class name is looked
up in the resource properties. If a factory class name is not specified
in the properties then the default factory will be used.
- Parameters:
serviceProviderInfo
- Information about the service provider