Class ViewResolversBeanDefinitionParser

java.lang.Object
org.springframework.web.servlet.config.ViewResolversBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser

public class ViewResolversBeanDefinitionParser extends Object implements BeanDefinitionParser
Parses the view-resolvers MVC namespace element and registers 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 a self-encapsulated resolver chain.

Since:
4.1
Author:
Sivaprasad Valluru, Sebastien Deleuze, Rossen Stoyanchev
See Also: