Search in sources :

Example 1 with ArgumentResolverConfigurer

use of org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer in project spring-framework by spring-projects.

the class WebFluxConfigurationSupport method requestMappingHandlerAdapter.

@Bean
public RequestMappingHandlerAdapter requestMappingHandlerAdapter(@Qualifier("webFluxAdapterRegistry") ReactiveAdapterRegistry reactiveAdapterRegistry, ServerCodecConfigurer serverCodecConfigurer, @Qualifier("webFluxConversionService") FormattingConversionService conversionService, @Qualifier("webFluxValidator") Validator validator) {
    RequestMappingHandlerAdapter adapter = createRequestMappingHandlerAdapter();
    adapter.setMessageReaders(serverCodecConfigurer.getReaders());
    adapter.setWebBindingInitializer(getConfigurableWebBindingInitializer(conversionService, validator));
    adapter.setReactiveAdapterRegistry(reactiveAdapterRegistry);
    ArgumentResolverConfigurer configurer = new ArgumentResolverConfigurer();
    configureArgumentResolvers(configurer);
    adapter.setArgumentResolverConfigurer(configurer);
    return adapter;
}
Also used : RequestMappingHandlerAdapter(org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter) ArgumentResolverConfigurer(org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer) Bean(org.springframework.context.annotation.Bean)

Aggregations

Bean (org.springframework.context.annotation.Bean)1 ArgumentResolverConfigurer (org.springframework.web.reactive.result.method.annotation.ArgumentResolverConfigurer)1 RequestMappingHandlerAdapter (org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerAdapter)1