インターフェースの使用
org.springframework.web.context.ConfigurableWebApplicationContext
パッケージ
説明
Web アプリケーションのアプリケーションコンテキストインターフェースのバリアントと、ルート Web アプリケーションコンテキストをブートストラップする ContextLoaderListener が含まれています。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context
パッケージをサポートするクラス。 アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
org.springframework.web.context 内の ConfigurableWebApplicationContext 使用
修飾子と型メソッド説明protected void
ContextLoader.configureAndRefreshWebApplicationContext
(ConfigurableWebApplicationContext wac, ServletContextEE sc) protected void
ContextLoader.customizeContext
(ServletContextEE sc, ConfigurableWebApplicationContext wac) 構成の場所がコンテキストに提供された後、コンテキストがリフレッシュされる前に、この ContextLoader によって作成されたConfigurableWebApplicationContext
をカスタマイズします。org.springframework.web.context.support 内の ConfigurableWebApplicationContext 使用
修飾子と型クラス説明class
Web 環境用のConfigurableWebApplicationContext
インターフェースを実装するAbstractRefreshableApplicationContext
サブクラス。class
コンポーネントクラスを入力として受け入れるWebApplicationContext
実装 — 特に@Configuration
クラスだけでなく、プレーンな@Component
クラス、jakarta.inject
アノテーションを使用する JSR-330 準拠のクラス。class
Web 環境に適したGenericApplicationContext
のサブクラス。class
GroovyBeanDefinitionReader
で理解されるように、Groovy Bean 定義スクリプトおよび / または XML ファイルから構成を取得するWebApplicationContext
実装。class
テスト用の静的WebApplicationContext
実装。class
XmlBeanDefinitionReader
が理解する XML ドキュメントから構成を取得するWebApplicationContext
実装。org.springframework.web.servlet 内の ConfigurableWebApplicationContext 使用
修飾子と型メソッド説明protected void
FrameworkServlet.configureAndRefreshWebApplicationContext
(ConfigurableWebApplicationContext wac) protected void
FrameworkServlet.postProcessWebApplicationContext
(ConfigurableWebApplicationContext wac) このサーブレットのコンテキストとしてリフレッシュおよびアクティブ化される前に、指定された WebApplicationContext を後処理します。