org.apache.ws.resource.properties
Interface ResourcePropertyCallback

All Known Subinterfaces:
SetResourcePropertyCallback
All Known Implementing Classes:
CurrentTimeCallback

public interface ResourcePropertyCallback

A callback that should be registered on any property whose value on the managed resource may change. Register the callback by calling ResourceProperty.setCallback(ResourcePropertyCallback) on the property.


Method Summary
 ResourceProperty refreshProperty(ResourceProperty prop)
          This method is called by the all of the WSRP PortType impls, prior to performing any work, in order to ensure the resource properties accurately reflect the current state of the managed resource.
 

Method Detail

refreshProperty

public ResourceProperty refreshProperty(ResourceProperty prop)
                                 throws org.apache.ws.resource.properties.impl.CallbackFailedException
This method is called by the all of the WSRP PortType impls, prior to performing any work, in order to ensure the resource properties accurately reflect the current state of the managed resource.

Parameters:
prop - the property to be refreshed
Returns:
the refreshed property
Throws:
org.apache.ws.resource.properties.impl.CallbackFailedException - An exception if the refresh fails on the backend and you want the server to return a fault instead of the current stored value.


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.