public abstract class ViewResolverSupport extends Object implements ApplicationContextAware, Ordered
ViewResolver implementations with shared properties.| Modifier and Type | Field and Description |
|---|---|
static MediaType |
DEFAULT_CONTENT_TYPE |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ViewResolverSupport() |
| Modifier and Type | Method and Description |
|---|---|
ApplicationContext |
getApplicationContext() |
int |
getOrder()
Return the order in which this
ViewResolver is evaluated. |
List<MediaType> |
getSupportedMediaTypes()
Return the configured media types supported by this view.
|
void |
setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
void |
setOrder(int order)
Set the order in which this
ViewResolver
is evaluated. |
void |
setSupportedMediaTypes(List<MediaType> supportedMediaTypes)
Set the supported media types for this view.
|
public static final MediaType DEFAULT_CONTENT_TYPE
public void setSupportedMediaTypes(List<MediaType> supportedMediaTypes)
public List<MediaType> getSupportedMediaTypes()
public void setApplicationContext(ApplicationContext applicationContext)
ApplicationContextAwareInvoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader),
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and
MessageSourceAware, if applicable.
setApplicationContext in interface ApplicationContextAwareapplicationContext - the ApplicationContext object to be used by this objectBeanInitializationExceptionpublic ApplicationContext getApplicationContext()
public void setOrder(int order)
ViewResolver
is evaluated.public int getOrder()
ViewResolver is evaluated.getOrder in interface OrderedOrdered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCE