view-resolvers MVC namespace element and registers
org.springframework.web.servlet.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.
FreeMarkerConfigurerBeanDefinitionParser, GroovyMarkupConfigurerBeanDefinitionParser, ScriptTemplateConfigurerBeanDefinitionParser
| Modifier and Type | Field and Description |
|---|---|
| public static final String | VIEW_RESOLVER_BEAN_NAME
The bean name used for the |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private BeanDefinition | |
| public BeanDefinition | parse(Element
the element that is to be parsed into one or more element, ParserContext BeanDefinitionsthe object encapsulating the current state of the parsing process;
provides access to a context)org.Implements org. Parse the specified |
| VIEW_RESOLVER_BEAN_NAME | back to summary |
|---|---|
| public static final String VIEW_RESOLVER_BEAN_NAME The bean name used for the | |
| ViewResolversBeanDefinitionParser | back to summary |
|---|---|
| public ViewResolversBeanDefinitionParser() | |
| addUrlBasedViewResolverProperties | back to summary |
|---|---|
| private void addUrlBasedViewResolverProperties(Element element, RootBeanDefinition beanDefinition) | |
| createContentNegotiatingViewResolver | back to summary |
|---|---|
| private BeanDefinition createContentNegotiatingViewResolver(Element resolverElement, ParserContext context) | |
| parse | back to summary |
|---|---|
| public BeanDefinition parse(Element element, ParserContext context) Implements org. Doc from org. Parse the specified Implementations must return the primary
| |