org.teleal.cling.model.action
Class ActionExecutor

java.lang.Object
  extended by org.teleal.cling.model.action.ActionExecutor
Direct Known Subclasses:
MethodActionExecutor, QueryStateVariableExecutor

public abstract class ActionExecutor
extends Object

Author:
Christian Bauer

Field Summary
protected  Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors
           
 
Constructor Summary
protected ActionExecutor()
           
protected ActionExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors)
           
 
Method Summary
 void execute(ActionInvocation<LocalService> actionInvocation)
           
protected abstract  void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl)
           
 Map<ActionArgument<LocalService>,StateVariableAccessor> getOutputArgumentAccessors()
           
protected  Object readOutputArgumentValues(Action<LocalService> action, Object instance)
           
protected  void setOutputArgumentValues(ActionInvocation<LocalService> actionInvocation, Object result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputArgumentAccessors

protected Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors
Constructor Detail

ActionExecutor

protected ActionExecutor()

ActionExecutor

protected ActionExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors)
Method Detail

getOutputArgumentAccessors

public Map<ActionArgument<LocalService>,StateVariableAccessor> getOutputArgumentAccessors()

execute

public void execute(ActionInvocation<LocalService> actionInvocation)

execute

protected abstract void execute(ActionInvocation<LocalService> actionInvocation,
                                Object serviceImpl)
                         throws Exception
Throws:
Exception

readOutputArgumentValues

protected Object readOutputArgumentValues(Action<LocalService> action,
                                          Object instance)
                                   throws Exception
Throws:
Exception

setOutputArgumentValues

protected void setOutputArgumentValues(ActionInvocation<LocalService> actionInvocation,
                                       Object result)
                                throws Exception
Throws:
Exception


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.