public class ViewResolversBeanDefinitionParser
extends java.lang.Object
implements org.springframework.beans.factory.xml.BeanDefinitionParser
view-resolvers
MVC namespace element and register
ViewResolver
bean definitions.
All registered resolvers are wrapped in a single (composite) ViewResolver with its order property set to 0 so that other external resolvers may be ordered before or after it.
When content negotiation is enabled the order property is set to highest priority instead with the ContentNegotiatingViewResolver encapsulating all other registered view resolver instances. That way the resolvers registered through the MVC namespace form self-encapsulated resolver chain.
TilesConfigurerBeanDefinitionParser
,
FreeMarkerConfigurerBeanDefinitionParser
,
GroovyMarkupConfigurerBeanDefinitionParser
,
ScriptTemplateConfigurerBeanDefinitionParser
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VIEW_RESOLVER_BEAN_NAME |
Constructor and Description |
---|
ViewResolversBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanDefinition |
parse(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext context) |
public static final java.lang.String VIEW_RESOLVER_BEAN_NAME