Example usage for org.springframework.web.servlet.mvc.method.annotation ReactiveTypeHandler ReactiveTypeHandler

List of usage examples for org.springframework.web.servlet.mvc.method.annotation ReactiveTypeHandler ReactiveTypeHandler

Introduction

In this page you can find the example usage for org.springframework.web.servlet.mvc.method.annotation ReactiveTypeHandler ReactiveTypeHandler.

Prototype

public ReactiveTypeHandler() 

Source Link

Usage

From source file:org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitterReturnValueHandler.java

/**
 * Simple constructor with reactive type support based on a default instance of
 * {@link ReactiveAdapterRegistry},/*from  w  ww  . ja  v a2s .co  m*/
 * {@link org.springframework.core.task.SyncTaskExecutor}, and
 * {@link ContentNegotiationManager} with an Accept header strategy.
 */
public ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters) {
    Assert.notEmpty(messageConverters, "HttpMessageConverter List must not be empty");
    this.messageConverters = messageConverters;
    this.reactiveHandler = new ReactiveTypeHandler();
}