de.smartics.properties.api.config.domain
Interface ConfigurationRepository

Package class diagram package ConfigurationRepository
All Known Subinterfaces:
ConfigurationRepositoryManagement
All Known Implementing Classes:
InMemoryConfigurationRepositoryManagement

public interface ConfigurationRepository

Provides access to configurations for applications in the configured environments.


Method Summary
 ConfigurationProperties getProperties(ConfigurationKey<?> key)
          Fetches the properties for the given configuration key.
 void release()
          Releases resources acquired by this instance.
 

Method Detail

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.

release

void release()
Releases resources acquired by this instance.



Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.