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.

See Also:
Constant Field Values
Method Detail

getInstance

public static ServiceProviderLocator getInstance()
Get the instance of ServiceProviderLocator.

Returns:
The singleton instance of this class which is not null.

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, not null.
Returns:
A non-null service provider implementation object for specified service.
Throws:
ProviderConfigurationException - if there was a problem with the provider configuration


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.