Klasse AbstractActionExecutor
java.lang.Object
org.jupnp.model.action.AbstractActionExecutor
- Alle implementierten Schnittstellen:
ActionExecutor
- Bekannte direkte Unterklassen:
MethodActionExecutor,QueryStateVariableExecutor
Shared procedures for action executors based on an actual service implementation instance.
- Autor:
- Christian Bauer
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected Map<ActionArgument<LocalService>, StateVariableAccessor> -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedprotectedAbstractActionExecutor(Map<ActionArgument<LocalService>, StateVariableAccessor> outputArgumentAccessors) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidexecute(ActionInvocation<LocalService> actionInvocation) Obtains the service implementation instance from theServiceManager, handles exceptions.protected abstract voidexecute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) protected ObjectreadOutputArgumentValues(Action<LocalService> action, Object instance) Reads the output arguments after an action execution using accessors.protected voidsetOutputArgumentValue(ActionInvocation<LocalService> actionInvocation, ActionArgument<LocalService> argument, Object result) Sets the output argument value on theActionInvocation, considers string conversion.
-
Felddetails
-
outputArgumentAccessors
-
-
Konstruktordetails
-
AbstractActionExecutor
protected AbstractActionExecutor() -
AbstractActionExecutor
protected AbstractActionExecutor(Map<ActionArgument<LocalService>, StateVariableAccessor> outputArgumentAccessors)
-
-
Methodendetails
-
getOutputArgumentAccessors
-
execute
Obtains the service implementation instance from theServiceManager, handles exceptions.- Angegeben von:
executein SchnittstelleActionExecutor
-
execute
protected abstract void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) throws Exception - Löst aus:
Exception
-
readOutputArgumentValues
protected Object readOutputArgumentValues(Action<LocalService> action, Object instance) throws Exception Reads the output arguments after an action execution using accessors.- Parameter:
action- The action of which the output arguments are read.instance- The instance on which the accessors will be invoked.- Gibt zurück:
nullif the action has no output arguments, a single instance if it has one, anObject[]otherwise.- Löst aus:
Exception
-
setOutputArgumentValue
protected void setOutputArgumentValue(ActionInvocation<LocalService> actionInvocation, ActionArgument<LocalService> argument, Object result) throws ActionException Sets the output argument value on theActionInvocation, considers string conversion.- Löst aus:
ActionException
-