org.jcoderz.commons.config
Class ConfigurationServiceCommonImpl

java.lang.Object
  extended by org.jcoderz.commons.config.ConfigurationServiceCommonImpl
All Implemented Interfaces:
ConfigurationServiceCommonInterface
Direct Known Subclasses:
ConfigurationServiceAdminImpl, ConfigurationServiceImpl

public class ConfigurationServiceCommonImpl
extends Object
implements ConfigurationServiceCommonInterface

Implementation of the common ConfigurationService business methods. This class holds all business logic of the service. Implementing the business interface ConfigurationServiceCommonInterface.


Constructor Summary
ConfigurationServiceCommonImpl()
           
 
Method Summary
 boolean getBoolean(ConfigurationKey key)
          Returns the boolean value that is associated with the given key.
protected  ConfigurationCacheInterface getConfigurationCacheCurrent()
           
 int getInt(ConfigurationKey key)
          Returns the int value that is associated with the given key.
 long getLong(ConfigurationKey key)
          Returns the long value that is associated with the given key.
 String getString(ConfigurationKey key)
          Returns the String value that is associated with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceCommonImpl

public ConfigurationServiceCommonImpl()
Method Detail

getBoolean

public boolean getBoolean(ConfigurationKey key)
                   throws ConfigurationValueNotFoundException,
                          ConfigurationTypeConversionFailedException,
                          ArgumentMalformedException
Returns the boolean value that is associated with the given key. FIXME: activate ejb tag if XDoclet BugFix is available

Specified by:
getBoolean in interface ConfigurationServiceCommonInterface
Parameters:
key - ConfigurationKey that is the key for a stored configuration value.
Returns:
the boolean value that is associated with the given key.
Throws:
ConfigurationValueNotFoundException - in case there is no match to key.
ConfigurationTypeConversionFailedException - in case the found value could not be converted to boolean type.
ArgumentMalformedException - Is thrown to indicate the illegal use of a null object as input parameter.

getInt

public int getInt(ConfigurationKey key)
           throws ConfigurationValueNotFoundException,
                  ConfigurationTypeConversionFailedException,
                  ArgumentMalformedException
Returns the int value that is associated with the given key. FIXME: activate ejb tag if XDoclet BugFix is available

Specified by:
getInt in interface ConfigurationServiceCommonInterface
Parameters:
key - ConfigurationKey that is the key for a stored configuration value.
Returns:
the int value that is associated with the given key.
Throws:
ConfigurationValueNotFoundException - in case there is no match to the key.
ConfigurationTypeConversionFailedException - in case the found value could not be converted to int type.
ArgumentMalformedException - Is thrown to indicate the illegal use of a null object as input parameter.

getLong

public long getLong(ConfigurationKey key)
             throws ConfigurationValueNotFoundException,
                    ConfigurationTypeConversionFailedException,
                    ArgumentMalformedException
Returns the long value that is associated with the given key. FIXME: activate ejb tag if XDoclet BugFix is available

Specified by:
getLong in interface ConfigurationServiceCommonInterface
Parameters:
key - ConfigurationKey that is the key for a stored configuration value.
Returns:
the long value that is associated with the given key.
Throws:
ConfigurationValueNotFoundException - in case there is no match to the key.
ConfigurationTypeConversionFailedException - in case the found value could not be converted to long type.
ArgumentMalformedException - Is thrown to indicate the illegal use of a null object as input parameter.

getString

public String getString(ConfigurationKey key)
                 throws ConfigurationValueNotFoundException,
                        ArgumentMalformedException
Returns the String value that is associated with the given key. FIXME: activate ejb tag if XDoclet BugFix is available

Specified by:
getString in interface ConfigurationServiceCommonInterface
Parameters:
key - ConfigurationKey that is the key for a stored configuration value.
Returns:
the String value that is associated with the given key.
Throws:
ConfigurationValueNotFoundException - in case there is no match to the key.
ArgumentMalformedException - Is thrown to indicate the illegal use of a null object as input parameter.

getConfigurationCacheCurrent

protected ConfigurationCacheInterface getConfigurationCacheCurrent()


Copyright 2007 The jCoderZ Project.