open class XmlViewResolver : AbstractCachingViewResolver, Ordered, InitializingBean, DisposableBean
A org.springframework.web.servlet.ViewResolver implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location. The file will typically be located in the WEB-INF directory; the default is "/WEB-INF/views.xml".
This ViewResolver does not support internationalization at the level of its definition resources. Consider ResourceBundleViewResolver if you need to apply different view resources per locale.
Note: This ViewResolver implements the Ordered interface in order to allow for flexible participation in ViewResolver chaining. For example, some special views could be defined via this ViewResolver (giving it 0 as "order" value), while all remaining views could be resolved by a UrlBasedViewResolver.
Author
Juergen Hoeller
Since
18.06.2003
See Also
org.springframework.context.ApplicationContext#getResourceResourceBundleViewResolverUrlBasedViewResolver
XmlViewResolver()
A org.springframework.web.servlet.ViewResolver implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location. The file will typically be located in the WEB-INF directory; the default is "/WEB-INF/views.xml". This Note: This |
static val DEFAULT_LOCATION: String
Default if no other location is supplied |
open fun afterPropertiesSet(): Unit
Pre-initialize the factory from the XML file. Only effective if caching is enabled. |
|
open fun destroy(): Unit
Close the view bean factory on context shutdown. |
|
open fun getOrder(): Int |
|
open fun setLocation(location: Resource): Unit
Set the location of the XML file that defines the view beans. The default is "/WEB-INF/views.xml". |
|
open fun setOrder(order: Int): Unit |