|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.config.ConfigurationServiceCommonImpl
org.jcoderz.commons.config.ConfigurationServiceImpl
public class ConfigurationServiceImpl
Implementation of the ConfigurationService business methods. This class holds all business logic of the service to fetch specific configuration data. Implementing the business interface ConfigurationServiceInterface. On this level only primitive types String, int, long and boolean are used. The well-formed and complex typed interfaces for the specific services are using this more simple interface. IMPORTANT: Because of XDoclet Bug in current version, we define delegators to the super class with ejb-tags here. These should be deleted if XDoclet is fixed.
| Constructor Summary | |
|---|---|
ConfigurationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addConfigurationListener(ConfigurationListener listener)
ConfigurationListener instance that will be registered to receive notifications. |
boolean |
getBoolean(ConfigurationKey key)
Returns the boolean value that is associated with the given key. |
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. |
ServiceConfiguration |
getServiceConfiguration(String classname)
gets the ServiceConfiguration interface related to the given *Service*Configuration classname. |
String |
getString(ConfigurationKey key)
Returns the String value that is associated with the given key. |
| Methods inherited from class org.jcoderz.commons.config.ConfigurationServiceCommonImpl |
|---|
getConfigurationCacheCurrent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationServiceImpl()
| Method Detail |
|---|
public void addConfigurationListener(ConfigurationListener listener)
throws ArgumentMalformedException
addConfigurationListener in interface ConfigurationServiceInterfacelistener - ConfigurationListener instance that will be registered
to receive notifications.
ArgumentMalformedException - Is thrown to indicate the illegal use
of a null object as input parameter.
public ServiceConfiguration getServiceConfiguration(String classname)
throws ArgumentMalformedException
getServiceConfiguration in interface ConfigurationServiceInterfaceclassname - the service configuration interface classname (full
qualified) for which the ServiceConfiguration interface should be
created. The classname MUST include the complete package path.
ArgumentMalformedException - Is thrown to indicate the illegal use
of a null object as input parameter.
public boolean getBoolean(ConfigurationKey key)
throws ConfigurationValueNotFoundException,
ConfigurationTypeConversionFailedException,
ArgumentMalformedException
getBoolean in interface ConfigurationServiceCommonInterfacegetBoolean in class ConfigurationServiceCommonImplkey - ConfigurationKey that is the key for a stored configuration
value.
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.
public int getInt(ConfigurationKey key)
throws ConfigurationValueNotFoundException,
ConfigurationTypeConversionFailedException,
ArgumentMalformedException
getInt in interface ConfigurationServiceCommonInterfacegetInt in class ConfigurationServiceCommonImplkey - ConfigurationKey that is the key for a stored configuration
value.
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.
public long getLong(ConfigurationKey key)
throws ConfigurationValueNotFoundException,
ConfigurationTypeConversionFailedException,
ArgumentMalformedException
getLong in interface ConfigurationServiceCommonInterfacegetLong in class ConfigurationServiceCommonImplkey - ConfigurationKey that is the key for a stored configuration
value.
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.
public String getString(ConfigurationKey key)
throws ConfigurationValueNotFoundException,
ArgumentMalformedException
getString in interface ConfigurationServiceCommonInterfacegetString in class ConfigurationServiceCommonImplkey - ConfigurationKey that is the key for a stored configuration
value.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||