Class DataStoreProviderManager
java.lang.Object
com.sun.identity.plugin.datastore.DataStoreProviderManager
This is a singleton class used to manage DataStore providers.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDataStoreProvider
(String componentName) Gets the provider associated with the component.static DataStoreProviderManager
Gets the singleton instance ofDataStoreProviderManager
.
-
Field Details
-
DEFAULT
Default.- See Also:
-
PROVIDER_ATTR_PREFIX
Prefix for provider attribute.- See Also:
-
DEFAULT_PROVIDER_ATTR
Attribute name for default provider.- See Also:
-
-
Method Details
-
getInstance
Gets the singleton instance ofDataStoreProviderManager
.- Returns:
- The singleton
DataStoreProviderManager
instance - Throws:
DataStoreProviderException
- if unable to get the singletonDataStoreProviderManager
instance.
-
getDataStoreProvider
public DataStoreProvider getDataStoreProvider(String componentName) throws DataStoreProviderException Gets the provider associated with the component. Whennull
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.
-