org.xnap.commons.settings
Interface SettingResource

All Known Implementing Classes:
PropertyResource

public interface SettingResource

Defines the requirements for classes that provide means to store settings.


Method Summary
 void addPropertyChangeListener(String key, PropertyChangeListener l)
           
 void firePropertyChange(String key, Object oldValue, Object newValue)
           
 String get(String key, String defaultValue)
          Returns the value to which the specified key is mapped.
 void put(String key, String value)
           
 void remove(String key)
           
 void removePropertyChangeListener(String key, PropertyChangeListener l)
           
 

Method Detail

addPropertyChangeListener

void addPropertyChangeListener(String key,
                               PropertyChangeListener l)

firePropertyChange

void firePropertyChange(String key,
                        Object oldValue,
                        Object newValue)

get

String get(String key,
           String defaultValue)
Returns the value to which the specified key is mapped.


remove

void remove(String key)

put

void put(String key,
         String value)

removePropertyChangeListener

void removePropertyChangeListener(String key,
                                  PropertyChangeListener l)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.