Package org.opensaml.core.config
Interface Configuration
- All Known Implementing Classes:
MapBasedConfiguration
public interface Configuration
A component which provides for the registration, retrieval and deregistration of objects
related to library module configuration.
An implementation may manage the registration, retrieval and deregistration of objects using a variety of mechanisms, such as internal in-memory storage, JNDI or a database.
-
Method Summary
Modifier and TypeMethodDescription<T> T
deregister
(Class<T> configClass, String partitionName) Deregister a configuration instance.<T> T
Obtain the registered configuration instance.<T,
I extends T>
voidRegister a configuration instance.
-
Method Details
-
get
Obtain the registered configuration instance.- Type Parameters:
T
- the type of configuration being retrieved, typically an interface- Parameters:
configClass
- the configuration class identifier, typically an interfacepartitionName
- the partition name to use- Returns:
- the instance of the registered configuration interface, or null
-
register
Register a configuration instance.- Type Parameters:
T
- the type of configuration being registered, typically an interfaceI
- the configuration implementation being registered, which will be an instance ofT
- Parameters:
configClass
- the type of configuration class being registered, typically an interfaceconfigInstance
- the configuration implementation instance being registeredpartitionName
- the partition name to use
-
deregister
Deregister a configuration instance.- Type Parameters:
T
- the type of configuration being deregistered, typically an interface- Parameters:
configClass
- the type of configuration class being deregistered , typically an interfacepartitionName
- the partition name to use- Returns:
- the configuration implementation instance which was deregistered, or null
-