List of usage examples for org.springframework.web.method HandlerMethod createWithResolvedBean
public HandlerMethod createWithResolvedBean()
From source file:org.fenixedu.bennu.spring.portal.PortalHandlerMethod.java
PortalHandlerMethod(HandlerMethod method, Functionality functionality) { super(method.createWithResolvedBean()); this.functionality = functionality; }
From source file:com.iflytek.edu.cloud.frame.spring.rest.ServiceMethodHandlerMapping.java
@Override protected HandlerMethod getHandlerInternal(HttpServletRequest request) throws Exception { String lookupPath = request.getParameter(Constants.SYS_PARAM_KEY_METHOD); if (logger.isDebugEnabled()) { logger.debug("Looking up handler method for path " + lookupPath); }//from w ww .j a v a 2 s . co m HandlerMethod handlerMethod = lookupHandlerMethod(lookupPath, request); if (logger.isDebugEnabled()) { if (handlerMethod != null) { logger.debug("Returning handler method [" + handlerMethod + "]"); } else { logger.debug("Did not find handler method for [" + lookupPath + "]"); } } return (handlerMethod != null ? handlerMethod.createWithResolvedBean() : null); }
From source file:org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.java
/** * Look up a handler method for the given request. *//* w w w . j a v a2 s.c o m*/ @Override protected HandlerMethod getHandlerInternal(HttpServletRequest request) throws Exception { String lookupPath = getUrlPathHelper().getLookupPathForRequest(request); this.mappingRegistry.acquireReadLock(); try { HandlerMethod handlerMethod = lookupHandlerMethod(lookupPath, request); return (handlerMethod != null ? handlerMethod.createWithResolvedBean() : null); } finally { this.mappingRegistry.releaseReadLock(); } }