UrlBasedViewResolver that supports
ScriptTemplateView and custom subclasses of it.
The view class for all views created by this resolver can be specified
via the setViewClass(Class) property.
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.
ScriptTemplateConfigurer
| Access | Constructor and Description |
|---|---|
| public | ScriptTemplateViewResolver()
Sets the default |
| public | ScriptTemplateViewResolver(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 |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractUrlBasedView | instantiateView()
Overrides org. Instantiate the specified view class. |
| protected Class | requiredViewClass()
Overrides org. Return the required type of view for this resolver. |
| ScriptTemplateViewResolver | back to summary |
|---|---|
| public ScriptTemplateViewResolver() Sets the default | |
| ScriptTemplateViewResolver | back to summary |
|---|---|
| public ScriptTemplateViewResolver(String prefix, String suffix) A convenience constructor that allows for specifying | |
| 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
| |