de.fzj.unicore.wsrflite.admin.propertylisteners
Class BooleanPropertyListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanPropertyListener
public BooleanPropertyListener()
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.