public class AnnotationActionBinder extends Object
Modifier and Type | Field and Description |
---|---|
protected UpnpAction |
annotation |
protected Method |
method |
protected Map<StateVariable,StateVariableAccessor> |
stateVariables |
protected Set<Class> |
stringConvertibleTypes |
Constructor and Description |
---|
AnnotationActionBinder(Method method,
Map<StateVariable,StateVariableAccessor> stateVariables,
Set<Class> stringConvertibleTypes) |
Modifier and Type | Method and Description |
---|---|
Action |
appendAction(Map<Action,ActionExecutor> actions) |
protected ActionExecutor |
createExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments) |
protected List<ActionArgument> |
createInputArguments() |
protected Map<ActionArgument<LocalService>,StateVariableAccessor> |
createOutputArguments() |
protected StateVariableAccessor |
findOutputArgumentAccessor(StateVariable stateVariable,
String getterName,
boolean multipleArguments) |
protected StateVariable |
findRelatedStateVariable(String declaredName,
String argumentName,
String methodName) |
UpnpAction |
getAnnotation() |
Method |
getMethod() |
protected StateVariable |
getStateVariable(String name) |
Map<StateVariable,StateVariableAccessor> |
getStateVariables() |
Set<Class> |
getStringConvertibleTypes() |
protected void |
validateType(StateVariable stateVariable,
Class type) |
protected UpnpAction annotation
protected Method method
protected Map<StateVariable,StateVariableAccessor> stateVariables
public AnnotationActionBinder(Method method, Map<StateVariable,StateVariableAccessor> stateVariables, Set<Class> stringConvertibleTypes)
public UpnpAction getAnnotation()
public Map<StateVariable,StateVariableAccessor> getStateVariables()
public Method getMethod()
public Action appendAction(Map<Action,ActionExecutor> actions) throws LocalServiceBindingException
LocalServiceBindingException
protected ActionExecutor createExecutor(Map<ActionArgument<LocalService>,StateVariableAccessor> outputArguments)
protected List<ActionArgument> createInputArguments() throws LocalServiceBindingException
LocalServiceBindingException
protected Map<ActionArgument<LocalService>,StateVariableAccessor> createOutputArguments() throws LocalServiceBindingException
LocalServiceBindingException
protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException
LocalServiceBindingException
protected StateVariable findRelatedStateVariable(String declaredName, String argumentName, String methodName) throws LocalServiceBindingException
LocalServiceBindingException
protected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException
LocalServiceBindingException
protected StateVariable getStateVariable(String name)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.