接口 AbstractCachingViewResolver.CacheFilter

封闭类:
AbstractCachingViewResolver
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public static interface AbstractCachingViewResolver.CacheFilter
Filter that determines if view should be cached.
作者:
Sergey Galkin, Arjen Poutsma
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    shouldCaching(View view, String viewName, Locale locale)
    Indicates whether the given view should be cached.
  • 方法详细资料

    • shouldCaching

      boolean shouldCaching(View view, String viewName, Locale locale)
      Indicates whether the given view should be cached. The name and locale used to resolve the view are also provided.
      参数:
      view - the view
      viewName - the name used to resolve the view
      locale - the locale used to resolve the view
      返回:
      true if the view should be cached; false otherwise