org.naftulin.configmgr
Interface ConfigurationManager


public interface ConfigurationManager

Configuration Manager provides a convinient way to read configurations from configuration managment engine.

Since:
1.0
Author:
Henry Naftulin

Method Summary
 java.lang.Object getConfiguration(java.lang.String key)
          Returns the configuration based on the key.
 java.lang.Object getConfigurationSilent(java.lang.String key)
          Returns the configuration based on the key if found and not in error state.
 

Method Detail

getConfiguration

java.lang.Object getConfiguration(java.lang.String key)
                                  throws ConfigurationManagerException
Returns the configuration based on the key. If the configuration is not found or is in error state throws an exception.

Parameters:
key - configuration mapped under.
Returns:
the configuration based on the key.
Throws:
ConfigurationManagerException - if configuration is not found or in error state.

getConfigurationSilent

java.lang.Object getConfigurationSilent(java.lang.String key)
Returns the configuration based on the key if found and not in error state. Otherwise returns null.

Parameters:
key - configuration mapped under.
Returns:
conifguration if found and it does not countain errors, null otherwise


Copyright © 2009. All Rights Reserved.