mvc
Class CallbackExecutor

java.lang.Object
  extended by mvc.CallbackExecutor
All Implemented Interfaces:
CallbackRegistry
Direct Known Subclasses:
CompositeModel, CompositeNotifier

public class CallbackExecutor
extends java.lang.Object
implements CallbackRegistry

A CallbackExecutor provides a registration, unregistration and execution service for callbacks.


Constructor Summary
CallbackExecutor()
          new CallbackExecutor() returns a new CallbackExecutor.
 
Method Summary
 void addCallback(Callback cbk)
          ce.addCallback(cbk) registers cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked.
protected  void executeCallbacks()
          ce.executeCallbacks() sends an execute() message to all callbacks that are registered with ce.
 void removeCallback(Callback cbk)
          ce.removeCallback(cbk) unregisters cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackExecutor

public CallbackExecutor()
new CallbackExecutor() returns a new CallbackExecutor.

Method Detail

executeCallbacks

protected void executeCallbacks()
ce.executeCallbacks() sends an execute() message to all callbacks that are registered with ce.


addCallback

public void addCallback(Callback cbk)
ce.addCallback(cbk) registers cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked.

Specified by:
addCallback in interface CallbackRegistry
Parameters:
cbk - the callback to be registered

removeCallback

public void removeCallback(Callback cbk)
ce.removeCallback(cbk) unregisters cbk as an callback that is executed by ce when ce.executeCallbacks() is invoked.

Specified by:
removeCallback in interface CallbackRegistry
Parameters:
cbk - the callback to be unregistered