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übersichtFelderModifizierer und TypFeldBeschreibungprotected Map<ActionArgument<LocalService>, StateVariableAccessor> 
- 
KonstruktorübersichtKonstruktorenModifiziererKonstruktorBeschreibungprotectedprotectedAbstractActionExecutor(Map<ActionArgument<LocalService>, StateVariableAccessor> outputArgumentAccessors) 
- 
MethodenübersichtModifizierer 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- 
AbstractActionExecutorprotected AbstractActionExecutor()
- 
AbstractActionExecutorprotected AbstractActionExecutor(Map<ActionArgument<LocalService>, StateVariableAccessor> outputArgumentAccessors) 
 
- 
- 
Methodendetails- 
getOutputArgumentAccessors
- 
executeObtains the service implementation instance from theServiceManager, handles exceptions.- Angegeben von:
- executein Schnittstelle- ActionExecutor
 
- 
executeprotected abstract void execute(ActionInvocation<LocalService> actionInvocation, Object serviceImpl) throws Exception - Löst aus:
- Exception
 
- 
readOutputArgumentValuesprotected 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, an- Object[]otherwise.
- Löst aus:
- Exception
 
- 
setOutputArgumentValueprotected 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
 
 
-