public abstract class HandlerMethodArgumentResolverSupport extends java.lang.Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
implementations with access to a
ReactiveAdapterRegistry
and methods to check for method parameter support.Modifier and Type | Field and Description |
---|---|
private ReactiveAdapterRegistry |
adapterRegistry |
Modifier | Constructor and Description |
---|---|
protected |
HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
private void |
assertHasValues(ReactiveAdapter adapter,
MethodParameter param) |
private java.lang.IllegalStateException |
buildReactiveWrapperException(MethodParameter parameter) |
protected <A extends java.lang.annotation.Annotation> |
checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter,
java.lang.Class<A> annotationType,
java.util.function.BiPredicate<A,java.lang.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,
java.util.function.Predicate<java.lang.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,
java.util.function.Predicate<java.lang.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, wait
resolveArgument, supportsParameter
private final ReactiveAdapterRegistry adapterRegistry
protected HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry)
public ReactiveAdapterRegistry getAdapterRegistry()
ReactiveAdapterRegistry
.protected boolean checkParameterType(MethodParameter parameter, java.util.function.Predicate<java.lang.Class<?>> predicate)
Predicate
on the method parameter type or on
the generic type within a reactive type wrapper.private void assertHasValues(ReactiveAdapter adapter, MethodParameter param)
protected boolean checkParameterTypeNoReactiveWrapper(MethodParameter parameter, java.util.function.Predicate<java.lang.Class<?>> predicate)
Predicate
on the method parameter type but raise an
IllegalStateException
if the same matches the generic type
within a reactive type wrapper.private java.lang.IllegalStateException buildReactiveWrapperException(MethodParameter parameter)
protected <A extends java.lang.annotation.Annotation> boolean checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, java.lang.Class<A> annotationType, java.util.function.BiPredicate<A,java.lang.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.