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 TypeMethodDescriptionbooleancanResolve(Class<?> type) Return whether an argument of the giventypecan be resolved.static <T> OperationArgumentResolverFactory method that creates anOperationArgumentResolverfor a specific type using aSupplier.<T> @Nullable TResolves an argument of the giventype.
-
Method Details
-
canResolve
Return whether an argument of the giventypecan be resolved.- Parameters:
type- argument type- Returns:
trueif 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 anOperationArgumentResolverfor a specific type using aSupplier.- Type Parameters:
T- the resolvable type- Parameters:
type- the resolvable typesupplier- the value supplier- Returns:
- an
OperationArgumentResolverinstance
-