Example usage for org.springframework.web.reactive.result.method InvocableHandlerMethod setReactiveAdapterRegistry

List of usage examples for org.springframework.web.reactive.result.method InvocableHandlerMethod setReactiveAdapterRegistry

Introduction

In this page you can find the example usage for org.springframework.web.reactive.result.method InvocableHandlerMethod setReactiveAdapterRegistry.

Prototype

public void setReactiveAdapterRegistry(ReactiveAdapterRegistry registry) 

Source Link

Document

Configure a reactive adapter registry.

Usage

From source file:org.springframework.web.reactive.result.method.annotation.ControllerMethodResolver.java

/**
 * Return an {@link InvocableHandlerMethod} for the given
 * {@code @RequestMapping} method initialized with argument resolvers.
 *//*  ww w  .  ja  va 2s . c  o  m*/
public InvocableHandlerMethod getRequestMappingMethod(HandlerMethod handlerMethod) {
    InvocableHandlerMethod invocable = new InvocableHandlerMethod(handlerMethod);
    invocable.setArgumentResolvers(this.requestMappingResolvers);
    invocable.setReactiveAdapterRegistry(this.reactiveAdapterRegistry);
    return invocable;
}