com.sun.identity.plugin.datastore
Class DataStoreProviderManager

java.lang.Object
  extended by com.sun.identity.plugin.datastore.DataStoreProviderManager

public final class DataStoreProviderManager
extends Object

This is a singleton class used to manage DataStore providers.


Field Summary
static String DEFAULT
          Default.
static String DEFAULT_PROVIDER_ATTR
          Attribute name for default provider.
static String PROVIDER_ATTR_PREFIX
          Prefix for provider attribute.
 
Method Summary
 DataStoreProvider getDataStoreProvider(String componentName)
          Gets the provider associated with the component.
static DataStoreProviderManager getInstance()
          Gets the singleton instance of DataStoreProviderManager.
 

Field Detail

DEFAULT

public static final String DEFAULT
Default.

See Also:
Constant Field Values

PROVIDER_ATTR_PREFIX

public static final String PROVIDER_ATTR_PREFIX
Prefix for provider attribute.

See Also:
Constant Field Values

DEFAULT_PROVIDER_ATTR

public static final String DEFAULT_PROVIDER_ATTR
Attribute name for default provider.

See Also:
Constant Field Values
Method Detail

getInstance

public static DataStoreProviderManager getInstance()
                                            throws DataStoreProviderException
Gets the singleton instance of DataStoreProviderManager.

Returns:
The singleton DataStoreProviderManager instance
Throws:
DataStoreProviderException - if unable to get the singleton DataStoreProviderManager instance.

getDataStoreProvider

public DataStoreProvider getDataStoreProvider(String componentName)
                                       throws DataStoreProviderException
Gets the provider associated with the component. When null componentName is passed in, default provider is returned.

Parameters:
componentName - component name, such as saml, saml2, id-ff, disco, authnsvc, and idpp.
Returns:
datastore provider for the calling component
Throws:
DataStoreProviderException - if an error occurred.