org.gudy.azureus2.pluginsimpl.local.config
Class ConfigParameterImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.config.ConfigParameterImpl
All Implemented Interfaces:
ParameterListener, ConfigParameter

public class ConfigParameterImpl
extends java.lang.Object
implements ConfigParameter, ParameterListener


Field Summary
protected  java.lang.String key
           
protected  java.util.List listeners
           
 
Constructor Summary
ConfigParameterImpl(java.lang.String _key)
           
 
Method Summary
 void addConfigParameterListener(ConfigParameterListener l)
           
 void parameterChanged(java.lang.String parameterName)
          Called, when a parameter has changed.
 void removeConfigParameterListener(ConfigParameterListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected java.lang.String key

listeners

protected java.util.List listeners
Constructor Detail

ConfigParameterImpl

public ConfigParameterImpl(java.lang.String _key)
Method Detail

parameterChanged

public void parameterChanged(java.lang.String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed

addConfigParameterListener

public void addConfigParameterListener(ConfigParameterListener l)
Specified by:
addConfigParameterListener in interface ConfigParameter

removeConfigParameterListener

public void removeConfigParameterListener(ConfigParameterListener l)
Specified by:
removeConfigParameterListener in interface ConfigParameter