コード例 #1
0
  @Override
  public void handleReturnValue(
      Object returnValue,
      MethodParameter returnType,
      ModelAndViewContainer mavContainer,
      NativeWebRequest webRequest)
      throws Exception {

    Class<? extends BaseView> viewClass = getDeclaredViewClass(returnType);
    if (viewClass != null) {
      returnValue = wrapResult(returnValue, viewClass);
    }

    delegate.handleReturnValue(returnValue, returnType, mavContainer, webRequest);
  }
コード例 #2
0
 @Override
 public boolean supportsReturnType(MethodParameter returnType) {
   return delegate.supportsReturnType(returnType);
 }