public interface ServletContextAware extends Aware
ServletContext
(typically determined by the WebApplicationContext
)
that it runs in.ServletConfigAware
Modifier and Type | Method and Description |
---|---|
void |
setServletContext(ServletContext servletContext)
Set the
ServletContext that this object runs in. |
void setServletContext(ServletContext servletContext)
ServletContext
that this object runs in.
Invoked after population of normal bean properties but before an init
callback like InitializingBean's afterPropertiesSet
or a
custom init-method. Invoked after ApplicationContextAware's
setApplicationContext
.
servletContext
- the ServletContext object to be used by this objectInitializingBean.afterPropertiesSet()
,
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)