public interface ServletConfigAware extends Aware
ServletConfig (typically determined by the WebApplicationContext)
that it runs in.
Note: Only satisfied if actually running within a Servlet-specific WebApplicationContext. Otherwise, no ServletConfig will be set.
ServletContextAware| Modifier and Type | Method and Description |
|---|---|
void |
setServletConfig(ServletConfig servletConfig)
Set the
ServletConfig that this object runs in. |
void setServletConfig(ServletConfig servletConfig)
ServletConfig 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.
servletConfig - ServletConfig object to be used by this objectInitializingBean.afterPropertiesSet(),
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)