Class ScriptTemplateViewResolver
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractCachingViewResolver
org.springframework.web.servlet.view.UrlBasedViewResolver
org.springframework.web.servlet.view.script.ScriptTemplateViewResolver
- All Implemented Interfaces:
- Aware, ApplicationContextAware, Ordered, ServletContextAware, ViewResolver
Convenience subclass of 
UrlBasedViewResolver that supports
ScriptTemplateView and custom subclasses of it.
The view class for all views created by this resolver can be specified
via the UrlBasedViewResolver.setViewClass(Class) property.
Note: When chaining ViewResolvers this resolver will check for the existence of the specified template resources and only return a non-null View object if a template is actually found.
- Since:
- 4.2
- Author:
- Sebastien Deleuze
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class AbstractCachingViewResolverAbstractCachingViewResolver.CacheFilter
- 
Field SummaryFields inherited from class UrlBasedViewResolverFORWARD_URL_PREFIX, REDIRECT_URL_PREFIXFields inherited from class AbstractCachingViewResolverDEFAULT_CACHE_LIMITFields inherited from class ApplicationObjectSupportloggerFields inherited from interface OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected AbstractUrlBasedViewInstantiate the specified view class.protected Class<?> Return the required type of view for this resolver.Methods inherited from class UrlBasedViewResolverapplyLifecycleMethods, buildView, canHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRedirectHosts, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHosts, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNamesMethods inherited from class AbstractCachingViewResolverclearCache, getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolvedMethods inherited from class WebApplicationObjectSupportgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextMethods inherited from class ApplicationObjectSupportgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
- 
Constructor Details- 
ScriptTemplateViewResolverpublic ScriptTemplateViewResolver()
- 
ScriptTemplateViewResolver- Parameters:
- prefix- the prefix that gets prepended to view names when building a URL
- suffix- the suffix that gets appended to view names when building a URL
- Since:
- 4.3
 
 
- 
- 
Method Details- 
requiredViewClassDescription copied from class:UrlBasedViewResolverReturn the required type of view for this resolver. This implementation returnsAbstractUrlBasedView.- Overrides:
- requiredViewClassin class- UrlBasedViewResolver
- See Also:
 
- 
instantiateViewDescription copied from class:UrlBasedViewResolverInstantiate the specified view class.The default implementation uses reflection to instantiate the class. - Overrides:
- instantiateViewin class- UrlBasedViewResolver
- Returns:
- a new instance of the view class
- See Also:
 
 
-