接口 OperationArgumentResolver
- 所有已知实现类:
ProducibleOperationArgumentResolver
public interface OperationArgumentResolver
Resolver for an argument of an
Operation
.- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson
-
方法概要
修饰符和类型方法说明boolean
canResolve
(Class<?> type) Return whether an argument of the giventype
can be resolved.static <T> OperationArgumentResolver
Factory method that creates anOperationArgumentResolver
for a specific type using aSupplier
.<T> T
Resolves an argument of the giventype
.
-
方法详细资料
-
canResolve
Return whether an argument of the giventype
can be resolved.- 参数:
type
- argument type- 返回:
true
if 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 anOperationArgumentResolver
for a specific type using aSupplier
.- 类型参数:
T
- the resolvable type- 参数:
type
- the resolvable typesupplier
- the value supplier- 返回:
- an
OperationArgumentResolver
instance
-