接口 ServletConfigAware
- 所有超级接口:
cn.taketoday.beans.factory.Aware
public interface ServletConfigAware
extends cn.taketoday.beans.factory.Aware
Interface to be implemented by any object that wishes to be notified of the
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.
- 从以下版本开始:
- 4.0 2022/2/20 20:59
- 作者:
- Juergen Hoeller, Chris Beams, Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidsetServletConfig(ServletConfig servletConfig) Set theServletConfigthat this object runs in.
-
方法详细资料
-
setServletConfig
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(cn.taketoday.context.ApplicationContext)
-