AbstractTemplateViewResolver that supports
GroovyMarkupView (i.e. Groovy XML/XHTML markup templates) and
custom subclasses of it.
The view class for all views created by this resolver can be specified
via setViewClass(Class).
Note
When chaining ViewResolvers this resolver will check for the
existence of the specified template resources and only return a non-null
View object if a template is actually found.
GroovyMarkupConfigurer
| Access | Constructor and Description |
|---|---|
| public | GroovyMarkupViewResolver()
Sets the default |
| public | GroovyMarkupViewResolver(String
the prefix that gets prepended to view names when building a URL prefix, String the suffix that gets appended to view names when building a URL suffix)A convenience constructor that allows for specifying the |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | getCacheKey(String viewName, Locale locale)
Overrides org. This resolver supports i18n, so cache keys should contain the locale. |
| protected AbstractUrlBasedView | instantiateView()
Overrides org. Instantiate the specified view class. |
| protected Class | requiredViewClass()
Overrides org. Return the required type of view for this resolver. |
| GroovyMarkupViewResolver | back to summary |
|---|---|
| public GroovyMarkupViewResolver() Sets the default | |
| GroovyMarkupViewResolver | back to summary |
|---|---|
| public GroovyMarkupViewResolver(String prefix, String suffix) A convenience constructor that allows for specifying the | |
| getCacheKey | back to summary |
|---|---|
| protected Object getCacheKey(String viewName, Locale locale) Overrides org. This resolver supports i18n, so cache keys should contain the locale.
| |
| instantiateView | back to summary |
|---|---|
| protected AbstractUrlBasedView instantiateView() Overrides org. Doc from org. Instantiate the specified view class. The default implementation uses reflection to instantiate the class.
| |
| requiredViewClass | back to summary |
|---|---|
| protected Class Overrides org. Doc from org. Return the required type of view for this resolver.
This implementation returns
| |