public interface ServletContextAware extends Aware
ServletContextEE(通常 WebApplicationContext によって決定される)の通知を希望するオブジェクトによって実装されるインターフェース。ServletConfigAware| 修飾子と型 | メソッドと説明 |
|---|---|
void | setServletContext(ServletContextEE servletContext) このオブジェクトが実行される ServletContextEE を設定します。 |
void setServletContext(ServletContextEE servletContext)
ServletContextEE を設定します。 通常の Bean プロパティの設定後、InitializingBean の afterPropertiesSet またはカスタム init メソッドのような初期コールバックの前に呼び出されます。ApplicationContextAware の setApplicationContext の後に呼び出されます。
servletContext - このオブジェクトによって使用される ServletContext オブジェクト InitializingBean.afterPropertiesSet(), ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)