|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.config.ConfigImpl
public class ConfigImpl
Default implementation of the Config interface, this should be used as the base class for any customisations
Constructor Summary | |
---|---|
ConfigImpl()
Default constructor |
|
ConfigImpl(ConfigImpl config)
Construct a ConfigImpl using the contents of an existing ConfigImpl |
Method Summary | |
---|---|
ConfigElement |
getConfigElement(String name)
Returns the config element with the given name, if there is more than one with the given name the first one added is returned. |
Map<String,ConfigElement> |
getConfigElements()
Returns all the config elements |
String |
getConfigElementValue(String name)
Shortcut method to get the config element with the given name and return its value. |
boolean |
hasConfigElement(String name)
Determines whether the given config element exists |
void |
putConfigElement(ConfigElement configElement)
Adds a config element to the results of the lookup replacing any config element already present with the same name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigImpl()
public ConfigImpl(ConfigImpl config)
config
- The instance to create this one fromMethod Detail |
---|
public ConfigElement getConfigElement(String name)
Config
getConfigElement
in interface Config
name
- Name of the config element to retrieve
Config.getConfigElement(java.lang.String)
public String getConfigElementValue(String name)
Config
getConfigElementValue
in interface Config
name
- Name of the config element value to retrieve
Config.getConfigElementValue(java.lang.String)
public boolean hasConfigElement(String name)
Config
hasConfigElement
in interface Config
name
- The name of the config element to look for
Config.hasConfigElement(java.lang.String)
public Map<String,ConfigElement> getConfigElements()
Config
getConfigElements
in interface Config
Config.getConfigElements()
public void putConfigElement(ConfigElement configElement)
configElement
- The config element to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |