类 HandlerMethodArgumentResolverSupport
- java.lang.Object
- org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- 所有已实现的接口:
HandlerMethodArgumentResolver
- 直接已知子类:
AbstractMessageReaderArgumentResolver,AbstractNamedValueArgumentResolver,ErrorsMethodArgumentResolver,MatrixVariableMapMethodArgumentResolver,ModelAttributeMethodArgumentResolver,ModelMethodArgumentResolver,PathVariableMapMethodArgumentResolver,PrincipalMethodArgumentResolver,RequestHeaderMapMethodArgumentResolver,RequestParamMapMethodArgumentResolver,ServerWebExchangeMethodArgumentResolver,WebSessionMethodArgumentResolver
public abstract class HandlerMethodArgumentResolverSupport extends Object implements HandlerMethodArgumentResolver
Base class forHandlerMethodArgumentResolverimplementations with access to aReactiveAdapterRegistryand methods to check for method parameter support.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev, Juergen Hoeller
构造器概要
构造器 限定符 构造器 说明 protectedHandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected <A extends Annotation>
booleancheckAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A,Class<?>> typePredicate)Evaluate thePredicateon the method parameter type if it has the given annotation, nesting withinOptionalif necessary, but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.protected booleancheckParameterType(MethodParameter parameter, Predicate<Class<?>> predicate)Evaluate thePredicateon the method parameter type or on the generic type within a reactive type wrapper.protected booleancheckParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate)Evaluate thePredicateon the method parameter type but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.ReactiveAdapterRegistrygetAdapterRegistry()Return the configuredReactiveAdapterRegistry.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
resolveArgument, supportsParameter
构造器详细资料
HandlerMethodArgumentResolverSupport
protected HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry)
方法详细资料
getAdapterRegistry
public ReactiveAdapterRegistry getAdapterRegistry()
Return the configuredReactiveAdapterRegistry.
checkParameterType
protected boolean checkParameterType(MethodParameter parameter, Predicate<Class<?>> predicate)
Evaluate thePredicateon the method parameter type or on the generic type within a reactive type wrapper.
checkParameterTypeNoReactiveWrapper
protected boolean checkParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate)
Evaluate thePredicateon the method parameter type but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.
checkAnnotatedParamNoReactiveWrapper
protected <A extends Annotation> boolean checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A,Class<?>> typePredicate)
Evaluate thePredicateon the method parameter type if it has the given annotation, nesting withinOptionalif necessary, but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.