Polishing
This commit is contained in:
parent
7f48d1b55a
commit
86a40716bd
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -129,14 +129,14 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu
|
|||
/**
|
||||
* Whether a view name once resolved to {@code null} should be cached and
|
||||
* automatically resolved to {@code null} subsequently.
|
||||
* <p>Default is "true": unresolved view names are being cached, as of Spring 3.1.
|
||||
* <p>Default is "true": unresolved view names are cached.
|
||||
* Note that this flag only applies if the general {@link #setCache "cache"}
|
||||
* flag is kept at its default of "true" as well.
|
||||
* <p>Of specific interest is the ability for some AbstractUrlBasedView
|
||||
* <p>Of specific interest is the ability for some {@link AbstractUrlBasedView}
|
||||
* implementations (e.g., FreeMarker) to check if an underlying resource
|
||||
* exists via {@link AbstractUrlBasedView#checkResource(Locale)}.
|
||||
* With this flag set to "false", an underlying resource that re-appears
|
||||
* is noticed and used. With the flag set to "true", one check is made only.
|
||||
* is noticed and used. With the flag set to "true", only one check is made.
|
||||
*/
|
||||
public void setCacheUnresolved(boolean cacheUnresolved) {
|
||||
this.cacheUnresolved = cacheUnresolved;
|
||||
|
@ -150,8 +150,8 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the filter that determines if view should be cached.
|
||||
* Default behaviour is to cache all views.
|
||||
* Set the filter that determines if view should be cached.
|
||||
* <p>Default behaviour is to cache all views.
|
||||
* @since 5.2
|
||||
*/
|
||||
public void setCacheFilter(CacheFilter cacheFilter) {
|
||||
|
@ -218,8 +218,8 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu
|
|||
|
||||
/**
|
||||
* Provides functionality to clear the cache for a certain view.
|
||||
* <p>This can be handy in case developer are able to modify views
|
||||
* (e.g. FreeMarker templates) at runtime after which you'd need to
|
||||
* <p>This can be handy in case developers are able to modify views
|
||||
* (e.g., FreeMarker templates) at runtime after which you'd need to
|
||||
* clear the cache for the specified view.
|
||||
* @param viewName the view name for which the cached view object
|
||||
* (if any) needs to be removed
|
||||
|
|
Loading…
Reference in New Issue