context.arch.handler
Interface Handler

All Known Implementing Classes:
Server, InOutBoard, SimpleApp, TourApp

public interface Handler

This empty interface allows the Handlers class to keep track of handlers. Any component that subscribes to widgets should extend this interface.

See Also:
Handlers

Method Summary
 DataObject handle(java.lang.String callback, DataObject data)
          This abstract method is used to generically handle any callbacks that a widget may support.
 

Method Detail

handle

public DataObject handle(java.lang.String callback,
                         DataObject data)
                  throws InvalidMethodException,
                         MethodException
This abstract method is used to generically handle any callbacks that a widget may support. A context widget will call handle when a callback is triggered in the widget and the handler has subscribed to that callback.
Parameters:
callback - The name of the widget callback (on the subscriber side) triggered
data - DataObject containing the data for the widget callback
Returns:
DataObject containing any directives to the widget that created the callback
Throws:
InvalidMethodException - if the specified callback can't be found
MethodException - is thrown if the specified callback can not be executed successfully