Package net.toddm.comm
Interface ConfigurationProvider
-
- All Known Implementing Classes:
DefaultConfigurationProvider,MapConfigurationProvider
public interface ConfigurationProviderConfiguration providers implement this interface in order to expose configuration data to the comm framework.- Author:
- Todd S. Murchison
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(String name)Returns true if a value with the given name exists in the configuration data, false otherwise.Objectget(String name)Returns anObjectrepresentation of the configuration value with the given name.booleangetBoolean(String name)Returns a boolean representation of the configuration value with the given name.intgetInt(String name)Returns an integer representation of the configuration value with the given name.longgetLong(String name)Returns a long representation of the configuration value with the given name.StringgetString(String name)Returns aStringrepresentation of the configuration value with the given name.
-
-
-
Method Detail
-
contains
boolean contains(String name)
Returns true if a value with the given name exists in the configuration data, false otherwise.
-
get
Object get(String name) throws ConfigurationException
Returns anObjectrepresentation of the configuration value with the given name. If no such value exists aConfigurationExceptionis thrown.- Throws:
ConfigurationException
-
getString
String getString(String name) throws ConfigurationException
Returns aStringrepresentation of the configuration value with the given name. If no such value exists or the value can not be interpreted as a String aConfigurationExceptionis thrown.- Throws:
ConfigurationException
-
getInt
int getInt(String name) throws ConfigurationException
Returns an integer representation of the configuration value with the given name. If no such value exists or the value can not be interpreted as an int aConfigurationExceptionis thrown.- Throws:
ConfigurationException
-
getLong
long getLong(String name) throws ConfigurationException
Returns a long representation of the configuration value with the given name. If no such value exists or the value can not be interpreted as a long aConfigurationExceptionis thrown.- Throws:
ConfigurationException
-
getBoolean
boolean getBoolean(String name) throws ConfigurationException
Returns a boolean representation of the configuration value with the given name. If no such value exists or the value can not be interpreted as a boolean aConfigurationExceptionis thrown.- Throws:
ConfigurationException
-
-