use of com.kixeye.chassis.transport.http.ObserableReturnValueHandler in project chassis by Kixeye.
the class SpringMvcConfiguration method returnValueHandlers.
@Bean
public List<HandlerMethodReturnValueHandler> returnValueHandlers(RequestMappingHandlerAdapter requestMappingHandlerAdapter) {
final List<HandlerMethodReturnValueHandler> handlers = new ArrayList<>(requestMappingHandlerAdapter.getReturnValueHandlers());
handlers.add(0, new ObserableReturnValueHandler());
handlers.add(0, new ListenableFutureReturnValueHandler());
requestMappingHandlerAdapter.setReturnValueHandlers(handlers);
return handlers;
}
Aggregations