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 String
DEFAULT
Default.static String
DEFAULT_PROVIDER_ATTR
Attribute name for default provider.static String
PROVIDER_ATTR_PREFIX
Prefix for provider attribute.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStoreProvider
getDataStoreProvider(String componentName)
Gets the provider associated with the component.static DataStoreProviderManager
getInstance()
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
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.
-
-