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

All Known Implementing Classes:
MetricDecorationProvider, MetricOnDemandListener

public interface PropertyReadListener

PropertyReadListener describes a type of property listener that is invoked before a property read request is completed (through the WS-RP GetResourceProperty and GetMultipleResourceProperties operations). Listeners can react to the read request in any way: the read can be prevented by throwing an exception, the value returned to the reader can be modified, etc. This is very useful when defining "dynamic properties", properties that change constantly and whose values are only updated when a read request is made.

Author:
Dan Jemiolo (danj)

Method Summary
 QName getPropertyName()
           
 Element[] readRequested(Element[] properties)
           
 

Method Detail

getPropertyName

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

readRequested

Element[] readRequested(Element[] properties)
                        throws BaseFault
Parameters:
properties - The actual property values that will be returned to the caller at the end of the read operation. WS-RP collections should not pass copies of the values to a listener, since that prevents the ability to define dynamic property values (properties that constantly change and are only updated on read requests).
Throws:
BaseFault


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