Class DataStoreProviderManager
- java.lang.Object
 - 
- com.sun.identity.plugin.datastore.DataStoreProviderManager
 
 
- 
@SupportedAll public final class DataStoreProviderManager extends Object
This is a singleton class used to manage DataStore providers. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringDEFAULTDefault.static StringDEFAULT_PROVIDER_ATTRAttribute name for default provider.static StringPROVIDER_ATTR_PREFIXPrefix for provider attribute. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoreProvidergetDataStoreProvider(String componentName)Gets the provider associated with the component.static DataStoreProviderManagergetInstance()Gets the singleton instance ofDataStoreProviderManager. 
 - 
 
- 
- 
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 ofDataStoreProviderManager.- Returns:
 - The singleton 
DataStoreProviderManagerinstance - Throws:
 DataStoreProviderException- if unable to get the singletonDataStoreProviderManagerinstance.
 
- 
getDataStoreProvider
public DataStoreProvider getDataStoreProvider(String componentName) throws DataStoreProviderException
Gets the provider associated with the component. WhennullcomponentName 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.
 
 - 
 
 -