com.ibm.itim.remoteservices.provider
Class ServiceProviderLocator

java.lang.Object
  extended by 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.
static java.lang.String MANUAL_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

MANUAL_FACTORY

public static final java.lang.String MANUAL_FACTORY
Method Detail

getInstance

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

Returns:
The singleton instance of this class.

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. serviceProviderInfo cannot be null.
Returns:
A service provider implementation object for specified service that will not be null.
Throws:
ProviderConfigurationException - If there was a problem with the provider configuration


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.