Interface OperationArgumentResolver
- All Known Implementing Classes:
ProducibleOperationArgumentResolver
public interface OperationArgumentResolver
Resolver for an argument of an
Operation
.- Since:
- 2.5.0
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
.
-
Method Details
-
canResolve
Return whether an argument of the giventype
can be resolved.- Parameters:
type
- argument type- Returns:
true
if an argument of the required type can be resolved, otherwisefalse
-
resolve
Resolves an argument of the giventype
.- Type Parameters:
T
- required type of the argument- Parameters:
type
- argument type- Returns:
- an argument of the required type, or
null
-
of
Factory method that creates anOperationArgumentResolver
for a specific type using aSupplier
.- Type Parameters:
T
- the resolvable type- Parameters:
type
- the resolvable typesupplier
- the value supplier- Returns:
- an
OperationArgumentResolver
instance
-