public interface ServletConfigAware extends Aware
Only satisfied if actually running within a Servlet-specific WebApplicationContext. If this callback interface is encountered elsewhere, an exception will be thrown on bean creation.
ServletContextAware| Modifier and Type | Method and Description |
|---|---|
void |
setServletConfig(javax.servlet.ServletConfig servletConfig)
Set the ServletConfig that this object runs in.
|
void setServletConfig(javax.servlet.ServletConfig servletConfig)
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)Copyright © 2013. All Rights Reserved.