Exemplo n.º 1
0
 @Override
 public String render(ModelAndView modelAndView) {
   try {
     String template = locator.getString(modelAndView.getViewName(), StandardCharsets.UTF_8, null);
     return renderer.render(template, (Map<String, ?>) modelAndView.getModel());
   } catch (IOException e) {
     throw new IllegalArgumentException(e);
   }
 }
Exemplo n.º 2
0
 public void setUseCache(boolean useCache) {
   locator.setUseCache(useCache);
 }
Exemplo n.º 3
0
 public boolean isUseCache() {
   return locator.isUseCache();
 }