org.asmatron.messengine.engines
Class DefaultActionDelegate

java.lang.Object
  extended by org.asmatron.messengine.engines.DefaultActionDelegate
All Implemented Interfaces:
ActionDelegate, BaseDelegate
Direct Known Subclasses:
TestActionDelegate

public class DefaultActionDelegate
extends java.lang.Object
implements ActionDelegate


Constructor Summary
  DefaultActionDelegate()
           
protected DefaultActionDelegate(java.util.concurrent.ExecutorService executorService, ActionRunnerFactory runnerFactory)
           
 
Method Summary
<T extends ActionObject>
void
addActionHandler(ActionId<T> command, ActionHandler<T> commandHandler)
           
<T extends ActionObject>
ActionProcessor<T>
get(ActionId<T> command, boolean create)
           
<T extends ActionObject>
void
removeActionHandler(ActionId<T> command)
           
<V,T> void
request(ActionId<RequestAction<V,T>> type, V requestParameter, ResponseCallback<T> callback)
           
 void send(Action<?> command)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActionDelegate

public DefaultActionDelegate()

DefaultActionDelegate

protected DefaultActionDelegate(java.util.concurrent.ExecutorService executorService,
                                ActionRunnerFactory runnerFactory)
Method Detail

addActionHandler

public <T extends ActionObject> void addActionHandler(ActionId<T> command,
                                                      ActionHandler<T> commandHandler)
Specified by:
addActionHandler in interface ActionDelegate

send

public void send(Action<?> command)
Specified by:
send in interface ActionDelegate

get

public <T extends ActionObject> ActionProcessor<T> get(ActionId<T> command,
                                                       boolean create)

removeActionHandler

public <T extends ActionObject> void removeActionHandler(ActionId<T> command)
Specified by:
removeActionHandler in interface ActionDelegate

start

public void start()
Specified by:
start in interface BaseDelegate

stop

public void stop()
Specified by:
stop in interface BaseDelegate

request

public <V,T> void request(ActionId<RequestAction<V,T>> type,
                          V requestParameter,
                          ResponseCallback<T> callback)
Specified by:
request in interface ActionDelegate


Copyright © 2011. All Rights Reserved.