Interface ActionMethodArgumentResolver
-
- All Implemented Interfaces:
public interface ActionMethodArgumentResolverStrategy interface for resolving action method parameters into argument values and input bindings.
-
-
Method Summary
Modifier and Type Method Description abstract BooleansupportsParameter(Parameter javaParameter, KParameter kotlinParameter, OperationContext operationContext)Whether the given method parameter is supported by this resolver. Set<IoBinding>resolveInputBinding(Parameter javaParameter, KParameter kotlinParameter)abstract ObjectresolveArgument(Parameter javaParameter, KParameter kotlinParameter, OperationContext operationContext)Resolve an action method parameter into an argument value. -
-
Method Detail
-
supportsParameter
abstract Boolean supportsParameter(Parameter javaParameter, KParameter kotlinParameter, OperationContext operationContext)
Whether the given method parameter is supported by this resolver.
- Parameters:
javaParameter- the Java method parameter to checkkotlinParameter- the Kotlin method parameter to check.operationContext- the current operation context when invoked before resolveArgument;nullwhen invoked before resolveInputBinding- Returns:
trueif this resolver supports the supplied parameter;falseotherwise
-
resolveInputBinding
Set<IoBinding> resolveInputBinding(Parameter javaParameter, KParameter kotlinParameter)
- Parameters:
javaParameter- the Java method parameter to check.kotlinParameter- the Kotlin method parameter to check.- Returns:
a set of bindings. Returns an empty set by default.
-
resolveArgument
abstract Object resolveArgument(Parameter javaParameter, KParameter kotlinParameter, OperationContext operationContext)
Resolve an action method parameter into an argument value. An
OperationContextprovides access to the context of the current action.- Parameters:
javaParameter- the Java method parameter to check.kotlinParameter- the Kotlin method parameter to check.operationContext- the current operation context
-
-
-
-