public interface ServletConfigAware extends Aware
ServletConfig
EE(通常 WebApplicationContext
によって決定される)の通知を希望するオブジェクトによって実装されるインターフェース。メモ: サーブレット固有の WebApplicationContext 内で実際に実行されている場合にのみ満たされます。それ以外の場合、ServletConfig は設定されません。
ServletContextAware
修飾子と型 | メソッドと説明 |
---|---|
void | setServletConfig(ServletConfigEE servletConfig) このオブジェクトが実行される ServletConfig EE を設定します。 |
void setServletConfig(ServletConfigEE servletConfig)
ServletConfig
EE を設定します。 通常の Bean プロパティの設定後、InitializingBean の afterPropertiesSet
またはカスタム init メソッドのような初期コールバックの前に呼び出されます。ApplicationContextAware の setApplicationContext
の後に呼び出されます。
servletConfig
- このオブジェクトによって使用される ServletConfig
EEInitializingBean.afterPropertiesSet()
, ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)