接口 ServletConfigAware
- 所有超级接口:
Aware
- 所有已知实现类:
SimpleServletPostProcessor
public interface ServletConfigAware extends Aware
Interface to be implemented by any object that wishes to be notified of theServletConfig(typically determined by theWebApplicationContext) that it runs in.Note: Only satisfied if actually running within a Servlet-specific WebApplicationContext. Otherwise, no ServletConfig will be set.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, Chris Beams
- 另请参阅:
ServletContextAware
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidsetServletConfig(ServletConfig servletConfig)Set theServletConfigthat this object runs in.
方法详细资料
setServletConfig
void setServletConfig(ServletConfig servletConfig)
Set theServletConfigthat this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's
afterPropertiesSetor a custom init-method. Invoked after ApplicationContextAware'ssetApplicationContext.- 参数:
servletConfig- theServletConfigto be used by this object- 另请参阅:
InitializingBean.afterPropertiesSet(),ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)