de.smartics.properties.spi.config.support
Class InMemoryConfigurationRepository
java.lang.Object
de.smartics.properties.spi.config.support.InMemoryConfigurationRepository
-
All Implemented Interfaces:
-
ConfigurationRepository
-
@ThreadSafe
public final class InMemoryConfigurationRepository
-
extends
Object
-
implements
ConfigurationRepository
Default implementation of ConfigurationRepository
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryConfigurationRepository
public InMemoryConfigurationRepository()
-
Default constructor.
getProperties
public ConfigurationProperties getProperties(ConfigurationKey key)
throws de.smartics.util.lang.NullArgumentException,
MissingConfigurationException
-
Description copied from interface:
ConfigurationRepository
-
Fetches the properties for the given configuration
key
.
-
-
Specified by:
-
getProperties
in interface
ConfigurationRepository
-
-
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.