|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationRepositoryManagement
Management interface to change configuration properties.
Implementations are not required to be thread-safe, but usually should be.
Method Summary | |
---|---|
ConfigurationPropertiesManagement |
deregisterProperties(ConfigurationKey<?> key) Removes the configuration properties for the given configuration key. |
Collection<ConfigurationKey<?>> |
getKeys() Returns the list of keys with configuration properties. |
ConfigurationPropertiesManagement |
getPropertiesManagement(ConfigurationKey<?> key) Fetches the properties management for the given configuration key. |
ConfigurationPropertiesManagement |
getPropertiesManagementWithDefaults(ConfigurationKey<?> key) Fetches the properties management for the given configuration key. |
PropertyDescriptorRegistry |
getRegistry() Returns the registry to resolve property descriptors. |
boolean |
hasPropertiesManagement(ConfigurationKey<?> key) Checks if a properties management for the given configuration key is present. |
void |
registerProperties(ConfigurationKey<?> key, ConfigurationPropertiesManagement configurationProperties) Registers the given configuration properties for the given configuration key . |
void |
release() Releases resources acquired by this instance. |
Methods inherited from interface de.smartics.properties.api.config.domain.ConfigurationRepository |
---|
getProperties |
Method Detail |
---|
void registerProperties(ConfigurationKey<?> key, ConfigurationPropertiesManagement configurationProperties) throws de.smartics.util.lang.NullArgumentException, DuplicateConfigurationException
key
.
key
- the key that specifies an application in its environment.
configurationProperties
- the configuration properties to register by the given
key
.
de.smartics.util.lang.NullArgumentException
- if
key
or
configurationProperties
is
null
.
DuplicateConfigurationException
- if a configuration with the given key is already registered.
ConfigurationPropertiesManagement deregisterProperties(ConfigurationKey<?> key) throws de.smartics.util.lang.NullArgumentException
key
- the key that specifies an application in its environment.
null
.
de.smartics.util.lang.NullArgumentException
- if
key
is
null
.
Collection<ConfigurationKey<?>> getKeys()
ConfigurationPropertiesManagement getPropertiesManagementWithDefaults(ConfigurationKey<?> key) throws de.smartics.util.lang.NullArgumentException, MissingConfigurationException
key
- the key that specifies an application in its environment.
null
.
de.smartics.util.lang.NullArgumentException
- if
key
is
null
.
MissingConfigurationException
- if there is no configuration for the given key.
ConfigurationRepository.getProperties(ConfigurationKey)
ConfigurationPropertiesManagement getPropertiesManagement(ConfigurationKey<?> key) throws de.smartics.util.lang.NullArgumentException, MissingConfigurationException
key
- the key that specifies an application in its environment.
null
.
de.smartics.util.lang.NullArgumentException
- if
key
is
null
.
MissingConfigurationException
- if there is no configuration for the given key.
ConfigurationRepository.getProperties(ConfigurationKey)
boolean hasPropertiesManagement(ConfigurationKey<?> key) throws de.smartics.util.lang.NullArgumentException
key
- the key that specifies an application in its environment.
true
if the configuration is present,
false
if not.
de.smartics.util.lang.NullArgumentException
- if
key
is
null
.
PropertyDescriptorRegistry getRegistry()
void release()
release
in interface
ConfigurationRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |