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 java.lang.Object

Author:
Christian Bauer

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

Field Detail

outputArgumentAccessors

protected java.util.Map<ActionArgument<LocalService>,StateVariableAccessor> outputArgumentAccessors
Constructor Detail

ActionExecutor

protected ActionExecutor()

ActionExecutor

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

getOutputArgumentAccessors

public java.util.Map<ActionArgument<LocalService>,StateVariableAccessor> getOutputArgumentAccessors()

execute

public void execute(ActionInvocation<LocalService> actionInvocation)

execute

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

readOutputArgumentValues

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

setOutputArgumentValues

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


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