public class ProducibleOperationArgumentResolver extends Object implements OperationArgumentResolver
| Constructor and Description |
|---|
ProducibleOperationArgumentResolver(Supplier<List<String>> accepts)
Create a new
ProducibleOperationArgumentResolver instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResolve(Class<?> type)
Return whether an argument of the given
type can be resolved. |
<T> T |
resolve(Class<T> type)
Resolves an argument of the given
type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic ProducibleOperationArgumentResolver(Supplier<List<String>> accepts)
ProducibleOperationArgumentResolver instance.accepts - supplier that returns accepted mime typespublic boolean canResolve(Class<?> type)
OperationArgumentResolvertype can be resolved.canResolve in interface OperationArgumentResolvertype - argument typetrue if an argument of the required type can be resolved, otherwise
falsepublic <T> T resolve(Class<T> type)
OperationArgumentResolvertype.resolve in interface OperationArgumentResolverT - required type of the argumenttype - argument typenull