public abstract class HandlerMethodArgumentResolverSupport extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver implementations with access to a
ReactiveAdapterRegistry and methods to check for method parameter support.| Modifier | Constructor and Description |
|---|---|
protected |
HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected <A extends Annotation> |
checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter,
Class<A> annotationType,
BiPredicate<A,Class<?>> typePredicate)
Evaluate the
Predicate on the method parameter type if it has the
given annotation, nesting within Optional if necessary,
but raise an IllegalStateException if the same matches the generic
type within a reactive type wrapper. |
protected boolean |
checkParameterType(MethodParameter parameter,
Predicate<Class<?>> predicate)
Evaluate the
Predicate on the method parameter type or on
the generic type within a reactive type wrapper. |
protected boolean |
checkParameterTypeNoReactiveWrapper(MethodParameter parameter,
Predicate<Class<?>> predicate)
Evaluate the
Predicate on the method parameter type but raise an
IllegalStateException if the same matches the generic type
within a reactive type wrapper. |
ReactiveAdapterRegistry |
getAdapterRegistry()
Return the configured
ReactiveAdapterRegistry. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveArgument, supportsParameterprotected HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry)
public ReactiveAdapterRegistry getAdapterRegistry()
ReactiveAdapterRegistry.protected boolean checkParameterType(MethodParameter parameter, Predicate<Class<?>> predicate)
Predicate on the method parameter type or on
the generic type within a reactive type wrapper.protected boolean checkParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate)
Predicate on the method parameter type but raise an
IllegalStateException if the same matches the generic type
within a reactive type wrapper.protected <A extends Annotation> boolean checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A,Class<?>> typePredicate)
Predicate on the method parameter type if it has the
given annotation, nesting within Optional if necessary,
but raise an IllegalStateException if the same matches the generic
type within a reactive type wrapper.