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.
 
Method Summary
static ServiceProviderLocator getInstance()
          Get the instance of ServiceProviderLocator.
 ServiceProvider getServiceProvider(ServiceProviderInformation serviceProviderInfo)
          Get the service provider info for the given service, get an instance of the ServiceProvider class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FACTORY

public static final java.lang.String DEFAULT_FACTORY
The default ServiceProviderFactory assumed if there is none specified in the resource definition factory.
Method Detail

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