Example usage for org.springframework.web.method.support HandlerMethodReturnValueHandler getClass

List of usage examples for org.springframework.web.method.support HandlerMethodReturnValueHandler getClass

Introduction

In this page you can find the example usage for org.springframework.web.method.support HandlerMethodReturnValueHandler getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:br.com.d4n.ui4entity.mvc.SpringContextConfigurer.java

private void decorateHandlers(List<HandlerMethodReturnValueHandler> handlers) {
    for (HandlerMethodReturnValueHandler handler : handlers) {

        if (handlerReturnValueType.equals(handler.getClass())) {
            HandlerMethodReturnValueHandler decorator = new ValueOptionReturnValueHandler(
                    new ControllerReturnValueHandler(handler, parserEngine));
            int index = handlers.indexOf(handler);
            handlers.set(index, decorator);

            logger.info("@TODO: Metadata Injecting decorator wired up");
        }/*  w w w  .j  ava2 s.  c o  m*/
    }
}