org.skunk.config
Class InMemoryConfigStore

java.lang.Object
  |
  +--org.skunk.config.InMemoryConfigStore
All Implemented Interfaces:
ConfigStore
Direct Known Subclasses:
LocalConfigStore

public class InMemoryConfigStore
extends java.lang.Object
implements ConfigStore


Constructor Summary
InMemoryConfigStore()
           
 
Method Summary
protected  java.util.HashMap getConfigMap()
           
 java.lang.Object getConfigValue(java.lang.Class configClass, java.lang.String configProperty)
           
 boolean isRegistered(java.lang.Class configClass)
           
 java.util.Iterator registeredClasses()
           
protected  void setConfigMap(java.util.HashMap configMap)
           
 void setConfigValue(java.lang.Class configClass, java.lang.String configProperty, java.lang.Object configValue)
           
 void unregister(java.lang.Class configClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryConfigStore

public InMemoryConfigStore()
Method Detail

getConfigMap

protected java.util.HashMap getConfigMap()

setConfigMap

protected void setConfigMap(java.util.HashMap configMap)

getConfigValue

public java.lang.Object getConfigValue(java.lang.Class configClass,
                                       java.lang.String configProperty)
Specified by:
getConfigValue in interface ConfigStore

registeredClasses

public java.util.Iterator registeredClasses()
Specified by:
registeredClasses in interface ConfigStore

isRegistered

public boolean isRegistered(java.lang.Class configClass)
Specified by:
isRegistered in interface ConfigStore

unregister

public void unregister(java.lang.Class configClass)
Specified by:
unregister in interface ConfigStore

setConfigValue

public void setConfigValue(java.lang.Class configClass,
                           java.lang.String configProperty,
                           java.lang.Object configValue)
Specified by:
setConfigValue in interface ConfigStore