java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractCachingViewResolver
All Implemented Interfaces:
ViewResolver, ServletContextAware, ApplicationContextAware
Direct Known Subclasses:
JasperReportsViewResolver, VelocityLayoutViewResolver, InternalResourceViewResolver, UrlBasedViewResolver, ResourceBundleViewResolver, AbstractTemplateViewResolver, VelocityViewResolver, XsltViewResolver, XmlViewResolver, FreeMarkerViewResolver
Subclasses need to implement the #loadView template method, building the View object for a specific view name and locale.
Rod - JohnsonJuergen - Hoeller| Fields inherited from org.springframework.context.support.ApplicationObjectSupport: |
|---|
| logger |
| Method from org.springframework.web.servlet.view.AbstractCachingViewResolver Summary: |
|---|
| clearCache, createView, getCacheKey, isCache, loadView, removeFromCache, resolveViewName, setCache |
| Methods from org.springframework.web.context.support.WebApplicationObjectSupport: |
|---|
| getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
| Methods from org.springframework.context.support.ApplicationObjectSupport: |
|---|
| getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.web.servlet.view.AbstractCachingViewResolver Detail: |
|---|
|
The default implementation delegates to #loadView .
This can be overridden to resolve certain view names in a special fashion,
before delegating to the actual |
Default is a String consisting of view name and locale suffix. Can be overridden in subclasses. Needs to respect the locale in general, as a different locale can lead to a different view resource. |
|
Subclasses are not forced to support internationalization: A subclass that does not may simply ignore the locale parameter. |
This can be handy in case developer are able to modify views (e.g. Velocity templates) at runtime after which you'd need to clear the cache for the specified view. |
|
Default is "true": caching is enabled. Disable this only for debugging and development. Warning: Disabling caching can severely impact performance. |