de.fzj.unicore.wsrflite.admin.propertylisteners
Class BooleanPropertyListener

java.lang.Object
  extended by de.fzj.unicore.wsrflite.admin.propertylisteners.BooleanPropertyListener
All Implemented Interfaces:
IPropertyListener
Direct Known Subclasses:
PropertyListenerDynamicDeployment

public abstract class BooleanPropertyListener
extends Object
implements IPropertyListener

Convenience implementation that discriminates between true/false and false/true property value transitions.
To this end, it used two Runnable implementations containing the respective logic (getTaskForTrue() and getTaskForFalse(), respectively).

Author:
j.daivandy@fz-juelich.de

Constructor Summary
BooleanPropertyListener()
           
 
Method Summary
abstract  Runnable getTaskForFalse()
           
abstract  Runnable getTaskForTrue()
           
 void propertyChanged(String oldValue, String newValue)
          Notifies listener of property value change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanPropertyListener

public BooleanPropertyListener()
Method Detail

propertyChanged

public void propertyChanged(String oldValue,
                            String newValue)
Description copied from interface: IPropertyListener
Notifies listener of property value change.
Can enable implementations to carry out logic based on value transitions (hence inclusion of oldValue).

Specified by:
propertyChanged in interface IPropertyListener

getTaskForTrue

public abstract Runnable getTaskForTrue()

getTaskForFalse

public abstract Runnable getTaskForFalse()


Copyright © 2010. All Rights Reserved.