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, wait
of
public ProducibleOperationArgumentResolver(Supplier<List<String>> accepts)
ProducibleOperationArgumentResolver
instance.accepts
- supplier that returns accepted mime typespublic boolean canResolve(Class<?> type)
OperationArgumentResolver
type
can be resolved.canResolve
in interface OperationArgumentResolver
type
- argument typetrue
if an argument of the required type can be resolved, otherwise
false
public <T> T resolve(Class<T> type)
OperationArgumentResolver
type
.resolve
in interface OperationArgumentResolver
T
- required type of the argumenttype
- argument typenull