org.jdiagnose.config
Class DefaultConfig

java.lang.Object
  extended byorg.jdiagnose.config.DefaultConfig
All Implemented Interfaces:
Config

public class DefaultConfig
extends java.lang.Object
implements Config

Author:
jmccrindle

Constructor Summary
DefaultConfig(ConfigDataService dataService, java.util.Map defaultValues)
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
           
 java.lang.Object getDefaultValue(java.lang.String key)
           
 void put(java.lang.String key, java.lang.Object newValue)
           
 void setDataService(ConfigDataService dataService)
           
 void setDefaultValues(java.util.Map defaultValues)
           
 void setListeners(java.util.List listeners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfig

public DefaultConfig(ConfigDataService dataService,
                     java.util.Map defaultValues)
Method Detail

get

public java.lang.Object get(java.lang.String key)
Specified by:
get in interface Config

put

public void put(java.lang.String key,
                java.lang.Object newValue)
         throws ConfigException
Specified by:
put in interface Config
Throws:
ConfigException

getDefaultValue

public java.lang.Object getDefaultValue(java.lang.String key)
Specified by:
getDefaultValue in interface Config

setDefaultValues

public void setDefaultValues(java.util.Map defaultValues)

setDataService

public void setDataService(ConfigDataService dataService)

setListeners

public void setListeners(java.util.List listeners)


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.