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