接口 OperationArgumentResolver
- 所有已知实现类:
ProducibleOperationArgumentResolver
public interface OperationArgumentResolver
Resolver for an argument of an
Operation.- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson
-
方法概要
修饰符和类型方法说明booleancanResolve(Class<?> type) Return whether an argument of the giventypecan be resolved.static <T> OperationArgumentResolverFactory method that creates anOperationArgumentResolverfor a specific type using aSupplier.<T> TResolves an argument of the giventype.
-
方法详细资料
-
canResolve
Return whether an argument of the giventypecan be resolved.- 参数:
type- argument type- 返回:
trueif an argument of the required type can be resolved, otherwisefalse
-
resolve
Resolves an argument of the giventype.- 类型参数:
T- required type of the argument- 参数:
type- argument type- 返回:
- an argument of the required type, or
null
-
of
Factory method that creates anOperationArgumentResolverfor a specific type using aSupplier.- 类型参数:
T- the resolvable type- 参数:
type- the resolvable typesupplier- the value supplier- 返回:
- an
OperationArgumentResolverinstance
-