List of usage examples for org.springframework.web.servlet.mvc HttpRequestHandlerAdapter HttpRequestHandlerAdapter
HttpRequestHandlerAdapter
From source file:org.kuali.rice.ksb.messaging.servlet.KSBDispatcherServlet.java
@Override protected HandlerAdapter getHandlerAdapter(Object handler) throws ServletException { if (handler instanceof HttpRequestHandler) { return new HttpRequestHandlerAdapter(); } else if (handler instanceof Controller) { Object unwrappedHandler = ClassLoaderUtils.unwrapFromProxy(handler); if (unwrappedHandler instanceof CXFServletControllerAdapter) { // TODO this just seems weird as this controller is initially null when it's created, does there need to be some synchronization here? ((CXFServletControllerAdapter) unwrappedHandler).setController(cxfServletController); }//from w w w . ja v a 2s. c o m return new SimpleControllerHandlerAdapter(); } throw new RiceRuntimeException("handler of type " + handler.getClass().getName() + " is not known and can't be used by " + KSBDispatcherServlet.class.getName()); }