org.apache.muse.ws.resource.properties.listeners
Interface PropertyChangeListener

All Known Implementing Classes:
ChangeNotificationListener, MetricUpdateListener

public interface PropertyChangeListener

PropertyChangeListener describes a type of property listener that is invoked after a property change has occurred (through the WS-RP SetResourceProperties operation). Listeners can react to or report the change from the propertyChanged() method. If you want to prevent changes, you should use a PropertyChangeApprover.

Author:
Dan Jemiolo (danj)

Method Summary
 QName getPropertyName()
           
 void propertyChanged(Element oldValue, Element newValue)
          Receives the old and new value of the property after it has been changed; there are no requirements on the actions taken in response to a property change.
 

Method Detail

getPropertyName

QName getPropertyName()
Returns:
The QName of the property to monitor.

propertyChanged

void propertyChanged(Element oldValue,
                     Element newValue)
                     throws BaseFault
Receives the old and new value of the property after it has been changed; there are no requirements on the actions taken in response to a property change.

Parameters:
oldValue - A copy of the property instance before it was changed.
newValue - The current value of the property instance.
Throws:
BaseFault -
  • If the change reaction fails for any reason.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.