com.evelopers.unimod.runtime
Interface EventManager

All Superinterfaces:
LifeCycleManager
All Known Implementing Classes:
QueuedHandler, StrictHandler

public interface EventManager
extends LifeCycleManager

The implemetors of this interface manages events sent to ModelEngine. Model engine delegetes event handling to implementor of this interface passed to its factory method.


Method Summary
 void handle(Event event, StateMachineContext context)
          Calls of event providers or model engine client to ModelEngine#handle will be delegated to this method.
 void handleAndWait(Event event, StateMachineContext context)
          Calls of event providers or model engine client to ModelEngine#handle will be delegated to this method.
 
Methods inherited from interface com.evelopers.unimod.runtime.LifeCycleManager
dispose, init
 

Method Detail

handle

public void handle(Event event,
                   StateMachineContext context)
Calls of event providers or model engine client to ModelEngine#handle will be delegated to this method. If event manager uses dispatch queue, returns immediately

Parameters:
event -
context -

handleAndWait

public void handleAndWait(Event event,
                          StateMachineContext context)
Calls of event providers or model engine client to ModelEngine#handle will be delegated to this method. If event manager uses dispatch queue, waits for end of event processing

Parameters:
event -
context -