public interface OperationArgumentResolver
Operation.| Modifier and Type | Method and Description |
|---|---|
boolean |
canResolve(Class<?> type)
Return whether an argument of the given
type can be resolved. |
static <T> OperationArgumentResolver |
of(Class<T> type,
Supplier<? extends T> supplier)
Factory method that creates an
OperationArgumentResolver for a specific
type using a Supplier. |
<T> T |
resolve(Class<T> type)
Resolves an argument of the given
type. |
boolean canResolve(Class<?> type)
type can be resolved.type - argument typetrue if an argument of the required type can be resolved, otherwise
false<T> T resolve(Class<T> type)
type.T - required type of the argumenttype - argument typenullstatic <T> OperationArgumentResolver of(Class<T> type, Supplier<? extends T> supplier)
OperationArgumentResolver for a specific
type using a Supplier.T - the resolvable typetype - the resolvable typesupplier - the value supplierOperationArgumentResolver instance