de.smartics.properties.spi.config.support
Class InMemoryConfigurationRepository

Package class diagram package InMemoryConfigurationRepository
java.lang.Object
  extended by de.smartics.properties.spi.config.support.InMemoryConfigurationRepository
All Implemented Interfaces:
ConfigurationRepository

@ThreadSafe
public final class InMemoryConfigurationRepository
     
     
extends Object
implements ConfigurationRepository

Default implementation of ConfigurationRepository.


Constructor Summary
InMemoryConfigurationRepository()
          Default constructor.
 
Method Summary
 ConfigurationProperties getProperties(ConfigurationKey key)
          Fetches the properties for the given configuration key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryConfigurationRepository

public InMemoryConfigurationRepository()
Default constructor.

Method Detail

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.