| org.springframework.web.servlet.view.AbstractCachingViewResolver org.springframework.web.servlet.view.XmlViewResolver
XmlViewResolver | public class XmlViewResolver extends AbstractCachingViewResolver implements Ordered,DisposableBean(Code) | | Implementation of ViewResolver that uses bean definitions in an
XML file, specified by resource location. The file will typically
be located in the WEB-INF directory; default is "/WEB-INF/views.xml".
This ViewResolver does not support internationalization.
Consider ResourceBundleViewResolver if you need to apply
different view resources per locale.
Note: This ViewResolver implements the Ordered interface 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.getResource See Also: ResourceBundleViewResolver See Also: UrlBasedViewResolver |
DEFAULT_LOCATION | final public static String DEFAULT_LOCATION(Code) | | Default if no other location is supplied
|
destroy | public void destroy() throws BeansException(Code) | | Close the view bean factory on context shutdown.
|
getCacheKey | protected Object getCacheKey(String viewName, Locale locale)(Code) | | This implementation returns just the view name,
as XmlViewResolver doesn't support localized resolution.
|
getOrder | public int getOrder()(Code) | | |
initApplicationContext | protected void initApplicationContext() throws BeansException(Code) | | Pre-initialize the factory from the XML file.
Only effective if caching is enabled.
|
initFactory | protected synchronized BeanFactory initFactory() throws BeansException(Code) | | Initialize the view bean factory from the XML file.
Synchronized because of access by parallel threads.
throws: BeansException - in case of initialization errors |
setLocation | public void setLocation(Resource location)(Code) | | Set the location of the XML file that defines the view beans.
The default is "/WEB-INF/views.xml".
Parameters: location - the location of the XML file. |
setOrder | public void setOrder(int order)(Code) | | |
|
|