de.smartics.properties.api.config.domain
Interface ConfigurationRepository
-
All Known Subinterfaces:
-
ConfigurationRepositoryManagement
-
All Known Implementing Classes:
-
InMemoryConfigurationRepository,
InMemoryConfigurationRepositoryManagement
-
public interface ConfigurationRepository
Provides access to configurations for applications in the configured environments.
getProperties
ConfigurationProperties getProperties(ConfigurationKey key)
throws de.smartics.util.lang.NullArgumentException,
MissingConfigurationException
-
Fetches the properties for the given configuration
key
.
-
-
Parameters:
-
key
- the key that specifies an application in its environment.
-
Returns:
-
the requested configuration properties. Never
null
.
-
Throws:
-
de.smartics.util.lang.NullArgumentException
- if
key
is
null
.
-
MissingConfigurationException
- if there is no configuration for the given
key
.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.