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 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