インターフェースの使用
org.springframework.context.ApplicationContext
ApplicationContext を使用するパッケージ
パッケージ
説明
このパッケージは、beans パッケージに基づいて構築され、メッセージソースと Observer デザインパターンのサポート、および一貫性のある API を使用してリソースを取得するアプリケーションオブジェクトの機能を追加します。
JSR-250「共通」アノテーション、コンポーネントスキャン、Spring 管理オブジェクトを作成するための Java ベースのメタデータなど、アプリケーションコンテキストのアノテーションサポート。
標準コンテキストイベントなどのアプリケーションイベントのサポートクラス。
ApplicationContext 実装および MessageSource 実装の抽象基本クラスなど、org.springframework.context パッケージをサポートするクラス。
クライアント側の HTTP 上の抽象化が含まれています。
JSON を処理するための HttpMessageConverter 実装を提供します。
Java 構成および XML スキーマをサポートする、宣言型メッセージング構成のサポートパッケージ。
メッセージハンドラーメソッドを呼び出すための共通インフラストラクチャ。
ノンブロッキング、リアクティブ契約でメッセージハンドラーメソッドを呼び出すための共通インフラストラクチャ。
より高いレベルのメッセージングプロトコルを使用した WebSocket メッセージングの構成サポート。
Spring のリアクティブサーバー Web API 抽象化のモック実装。
非同期メソッド実行のアノテーションサポート。
java.util.concurrent および jakarta.enterprise.concurrent パッケージのコンビニエンスクラスをスケジュールし、Spring コンテキストで ThreadPoolExecutor または ScheduledThreadPoolExecutor を Bean としてセットアップできるようにします。 オープンソーススケジューラ Quartz のサポートクラス。Quartz スケジューラ、JobDetails、トリガーを Spring コンテキストの Bean として設定できます。
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
Spring TestContext フレームワークの事前 (AOT) サポート。
Spring TestContext フレームワーク内のコンテキストキャッシングのサポート。
Spring TestContext フレームワークを JUnit 5 の JUnit Jupiter 拡張モデルと統合するためのコアサポート。
Spring TestContext フレームワークを JUnit 4.12 以上と統合するためのサポートクラス。
Spring TestContext フレームワークのサポートクラス。
Spring TestContext フレームワークを TestNG と統合するためのサポートクラス。
Web は、Spring TestContext フレームワークのクラスをサポートします。
WebTestClient を介した Spring WebFlux サーバーエンドポイントのテストのサポート。org.springframework.ui.context パッケージをサポートするクラス。
JSR-303 Bean 検証プロバイダー(Hibernate Validator など)を Spring ApplicationContext に、特に Spring のデータバインディングおよび検証 API と統合するためのサポートクラス。
Web アプリケーションのアプリケーションコンテキストインターフェースのバリアントと、ルート Web アプリケーションコンテキストをブートストラップする ContextLoaderListener が含まれています。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context パッケージをサポートするクラス。Spring MVC の
org.springframework.web.servlet.mvc.method パッケージで使用される、ハンドラーメソッド処理の共通インフラストラクチャ。DispatcherHandler を含む spring-webflux モジュールの最上位パッケージ。WebFlux サーバーエンドポイント処理のメインエントリポイントで、リクエストをハンドラーにマッピングし、呼び出し、結果を処理するために使用されるキー契約を含みます。Spring WebFlux 構成インフラストラクチャ。
静的リソースを提供するためのサポートクラス。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
ビューの解決による結果処理のサポート。
JSR-223 スクリプトエンジン抽象化に基づくビューのクラスをサポートします。
Spring の一般的なリアクティブ Web サポートのコアインターフェースとクラス。
基礎となる
org.springframework.http.client.reactive リアクティブ HTTP アダプターと HttpHandler に適応する実装。 アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
Spring MVC のアノテーションベースのセットアップ。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
org.springframework.web.method.annotation パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 静的リソースを提供するためのサポートクラス。
カスタム実装の抽象基本クラスを含む、標準の View および ViewResolver 実装を提供します。
Groovy テンプレートを Spring Web ビューテクノロジーとして統合するためのサポートクラス。
JSR-223 スクリプトエンジン抽象化に基づくビューのクラスをサポートします。
標準 Jakarta WebSocket API のアダプタークラス。
構成クラスでのアノテーションベースの WebSocket セットアップのサポート。
org.springframework.context 内の ApplicationContext 使用
org.springframework.context 内の ApplicationContext サブインターフェース修飾子と型インターフェース説明interfaceほとんどのアプリケーションコンテキストによって実装される SPI インターフェース。型 ApplicationContext のパラメーターを持つ org.springframework.context のメソッド修飾子と型メソッド説明voidApplicationContextAware.setApplicationContext(ApplicationContext applicationContext) このオブジェクトが実行される ApplicationContext を設定します。voidConfigurableApplicationContext.setParent(ApplicationContext parent) このアプリケーションコンテキストの親を設定します。org.springframework.context.annotation 内の ApplicationContext 使用
ApplicationContext を実装している org.springframework.context.annotation のクラス修飾子と型クラス説明classコンポーネントクラスを入力として受け入れるスタンドアロンアプリケーションコンテキスト— 特に@Configurationアノテーション付きクラスだけでなく、プレーン@Component型およびjakarta.injectアノテーションを使用する JSR-330 準拠クラスも受け入れます。org.springframework.context.event 内の ApplicationContext 使用
修飾子と型メソッド説明final ApplicationContextApplicationContextEvent.getApplicationContext()イベントが発生したApplicationContextを取得します。型 ApplicationContext のパラメーターを持つ org.springframework.context.event のメソッド修飾子と型メソッド説明voidEventListenerMethodProcessor.setApplicationContext(ApplicationContext applicationContext) 型 ApplicationContext のパラメーターを持つ org.springframework.context.event のコンストラクター修飾子コンストラクター説明新しいApplicationContextEventを作成します。ContextClosedEvent(ApplicationContext source) 新しいContextClosedEventを作成します。新しいContextRefreshedEventを作成します。新しいContextStartedEventを作成します。新しいContextStoppedEventを作成します。org.springframework.context.support 内の ApplicationContext 使用
ApplicationContext を実装している org.springframework.context.support のクラス修飾子と型クラス説明classApplicationContextインターフェースの抽象的な実装。classAbstractApplicationContext.refresh()への複数の呼び出しをサポートすることになっているApplicationContext実装の基本クラスで、毎回新しい内部 Bean ファクトリインスタンスを作成します。class指定された構成の場所の一般的な処理を追加するAbstractRefreshableApplicationContextサブクラス。classApplicationContext実装の便利な基本クラス。XmlBeanDefinitionReaderが理解する Bean 定義を含む XML ドキュメントから構成を描画します。classスタンドアロン XML アプリケーションコンテキスト。クラスパスからコンテキスト定義ファイルを取得し、プレーンパスをパッケージパスを含むクラスパスリソース名として解釈します (例: "mypackage/myresource.txt")。classスタンドアロン XML アプリケーションコンテキスト。ファイルシステムまたは URL からコンテキスト定義ファイルを取得し、プレーンパスを相対的なファイルシステムの場所として解釈します (例: "mydir/myfile.txt")。class単一の内部DefaultListableBeanFactoryインスタンスを保持し、特定の Bean 定義フォーマットを想定しない汎用 ApplicationContext 実装。classGenericApplicationContextを継承し、GroovyObjectを実装するApplicationContext実装。AbstractApplicationContext.getBean(java.lang.String)を使用する代わりに、ドット参照解除構文で Bean を取得できます。class組み込みの XML サポートを備えた便利なアプリケーションコンテキスト。class外部構成ソースから Bean 定義を読み取るのではなく、Bean およびメッセージのプログラムによる登録をサポートするApplicationContext実装。修飾子と型メソッド説明final ApplicationContextApplicationObjectSupport.getApplicationContext()このオブジェクトが関連付けられている ApplicationContext を返します。AbstractApplicationContext.getParent()親コンテキストを返します。親がない場合(つまり、このコンテキストがコンテキスト階層のルートである場合)は、nullを返します。protected final ApplicationContextApplicationObjectSupport.obtainApplicationContext()実際に使用するために ApplicationContext を取得します。型 ApplicationContext のパラメーターを持つ org.springframework.context.support のメソッド修飾子と型メソッド説明protected voidApplicationObjectSupport.initApplicationContext(ApplicationContext context) サブクラスは、カスタム初期化動作のためにこれをオーバーライドできます。final voidApplicationObjectSupport.setApplicationContext(ApplicationContext context) voidAbstractApplicationContext.setParent(ApplicationContext parent) このアプリケーションコンテキストの親を設定します。voidGenericApplicationContext.setParent(ApplicationContext parent) このアプリケーションコンテキストの親を設定し、それに応じて内部 BeanFactory の親も設定します。型 ApplicationContext のパラメーターを持つ org.springframework.context.support のコンストラクター修飾子コンストラクター説明指定された親コンテキストで新しい AbstractApplicationContext を作成します。指定された親コンテキストで新しい AbstractRefreshableApplicationContext を作成します。指定された親コンテキストで新しい AbstractRefreshableConfigApplicationContext を作成します。指定された親コンテキストで新しい AbstractXmlApplicationContext を作成します。ClassPathXmlApplicationContext(StringSE[] configLocations, boolean refresh, ApplicationContext parent) 指定された親を使用して新しい ClassPathXmlApplicationContext を作成し、指定された XML ファイルから定義をロードします。ClassPathXmlApplicationContext(StringSE[] paths, ClassSE<?> clazz, ApplicationContext parent) 指定された親を使用して新しい ClassPathXmlApplicationContext を作成し、指定された XML ファイルから定義をロードして、コンテキストを自動的にリフレッシュします。ClassPathXmlApplicationContext(StringSE[] configLocations, ApplicationContext parent) 指定された親を使用して新しい ClassPathXmlApplicationContext を作成し、指定された XML ファイルから定義をロードして、コンテキストを自動的にリフレッシュします。Bean スタイルの構成用に新しい ClassPathXmlApplicationContext を作成します。FileSystemXmlApplicationContext(StringSE[] configLocations, boolean refresh, ApplicationContext parent) 指定された親を使用して新しい FileSystemXmlApplicationContext を作成し、指定された XML ファイルから定義をロードします。FileSystemXmlApplicationContext(StringSE[] configLocations, ApplicationContext parent) 指定された親を使用して新しい FileSystemXmlApplicationContext を作成し、指定された XML ファイルから定義をロードして、コンテキストを自動的にリフレッシュします。Bean スタイルの構成用に新しい FileSystemXmlApplicationContext を作成します。GenericApplicationContext(DefaultListableBeanFactory beanFactory, ApplicationContext parent) 指定された DefaultListableBeanFactory で新しい GenericApplicationContext を作成します。指定された親を持つ新しい GenericApplicationContext を作成します。指定された親を持つ新しい StaticApplicationContext を作成します。org.springframework.http.client 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明voidReactorResourceFactory.setApplicationContext(ApplicationContext applicationContext) ApplicationContextの設定はオプションです。設定すると、Reactor リソースはlifecycle startフェーズで初期化され、lifecycle stopフェーズで閉じられます。org.springframework.http.converter.json 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.http.converter.json のメソッド修飾子と型メソッド説明Jackson2ObjectMapperBuilder.applicationContext(ApplicationContext applicationContext) Jackson ハンドラー(JsonSerializer、JsonDeserializer、KeyDeserializer、TypeResolverBuilderおよびTypeIdResolver)をオートワイヤーするために、SpringApplicationContextを設定します。voidJackson2ObjectMapperFactoryBean.setApplicationContext(ApplicationContext applicationContext) Jackson ハンドラー(JsonSerializer、JsonDeserializer、KeyDeserializer、TypeResolverBuilder、TypeIdResolver)をオートワイヤーするために、ビルダーApplicationContextを設定します。org.springframework.jms.config 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.jms.config のメソッド修飾子と型メソッド説明voidJmsListenerEndpointRegistry.setApplicationContext(ApplicationContext applicationContext) org.springframework.messaging.handler.invocation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.messaging.handler.invocation のメソッド修飾子と型メソッド説明voidAbstractMethodMessageHandler.setApplicationContext(ApplicationContext applicationContext) org.springframework.messaging.handler.invocation.reactive 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.messaging.handler.invocation.reactive のメソッド修飾子と型メソッド説明voidAbstractMethodMessageHandler.setApplicationContext(ApplicationContext applicationContext) org.springframework.messaging.simp.config 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.messaging.simp.config のメソッド修飾子と型メソッド説明voidAbstractMessageBrokerConfiguration.setApplicationContext(ApplicationContext applicationContext) org.springframework.mock.web.server 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.mock.web.server のメソッド修飾子と型メソッド説明MockServerWebExchange.Builder.applicationContext(ApplicationContext applicationContext) 交換を通じて公開するApplicationContextを提供します。org.springframework.scheduling.annotation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.scheduling.annotation のメソッド修飾子と型メソッド説明voidScheduledAnnotationBeanPostProcessor.setApplicationContext(ApplicationContext applicationContext) ApplicationContextの設定はオプションです。設定すると、登録されたタスクはContextRefreshedEventフェーズでアクティブになります。設定されていない場合、ScheduledAnnotationBeanPostProcessor.afterSingletonsInstantiated()時に発生します。org.springframework.scheduling.concurrent 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.scheduling.concurrent のメソッド修飾子と型メソッド説明voidExecutorConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) voidSimpleAsyncTaskScheduler.setApplicationContext(ApplicationContext applicationContext) org.springframework.scheduling.quartz 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.scheduling.quartz のメソッド修飾子と型メソッド説明voidJobDetailFactoryBean.setApplicationContext(ApplicationContext applicationContext) voidSchedulerFactoryBean.setApplicationContext(ApplicationContext applicationContext) voidSpringBeanJobFactory.setApplicationContext(ApplicationContext applicationContext) org.springframework.test.context 内の ApplicationContext 使用
修飾子と型メソッド説明ContextLoadException.getApplicationContext()ロードに失敗したApplicationContextを取得します。TestContext.getApplicationContext()おそらくキャッシュされている、このテストコンテキストのアプリケーションコンテキストを取得します。MergedContextConfiguration.getParentApplicationContext()このMergedContextConfigurationによって定義されたコンテキストの親ApplicationContextをコンテキストキャッシュから取得します。CacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedConfig) 指定されたMergedContextConfigurationで構成されたContextLoaderに委譲することにより、提供されたMergedContextConfigurationのアプリケーションコンテキストをロードします。ContextLoader.loadContext(StringSE... locations) 使用すべきではありません。default ApplicationContextSmartContextLoader.loadContext(StringSE... locations) SmartContextLoaderは非推奨のContextLoaderメソッドをサポートしていません。SmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationに基づいて新しいApplicationContextをロードし、コンテキストを構成して、完全にリフレッシュされた状態でコンテキストを返します。型 ApplicationContext のパラメーターを持つ org.springframework.test.context のメソッド修飾子と型メソッド説明voidApplicationContextFailureProcessor.processLoadFailure(ApplicationContext context, ThrowableSE exception) ApplicationContextをロードしようとしているときに障害が発生したときに呼び出されます。型 ApplicationContext のパラメーターを持つ org.springframework.test.context のコンストラクターorg.springframework.test.context.aot 内の ApplicationContext 使用
修飾子と型メソッド説明default ApplicationContextAotContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。Spring Framework 6.2.4 時点ではAotContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints)に置き換えられ、Spring Framework 8.0 で削除される予定default ApplicationContextAotContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig, RuntimeHints runtimeHints) 提供されたMergedContextConfigurationに基づいて AOT ビルド時の処理用に新しいApplicationContextをロードし、コンテキストを構成して、コンテキストを返します。AotContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfigurationおよびApplicationContextInitializerに基づいて、AOT ランタイム実行用に新しいApplicationContextをロードします。org.springframework.test.context.cache 内の ApplicationContext 使用
修飾子と型メソッド説明ContextCache.get(MergedContextConfiguration key) 指定されたキーのキャッシュされたApplicationContextを取得します。DefaultContextCache.get(MergedContextConfiguration key) DefaultCacheAwareContextLoaderDelegate.loadContext(MergedContextConfiguration mergedConfig) protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.loadContextInAotMode(org.springframework.test.context.cache.AotMergedContextConfiguration aotMergedConfig) protected ApplicationContextDefaultCacheAwareContextLoaderDelegate.loadContextInternal(MergedContextConfiguration mergedConfig) 提供されたマージされたコンテキスト構成のApplicationContextをロードします。型 ApplicationContext のパラメーターを持つ org.springframework.test.context.cache のメソッド修飾子と型メソッド説明voidContextCache.put(MergedContextConfiguration key, ApplicationContext context) 特定のキーにあるApplicationContextインスタンスをキャッシュに明示的に追加します。これにより、カスタムの排除ポリシーが適用される可能性があります。voidDefaultContextCache.put(MergedContextConfiguration key, ApplicationContext context) org.springframework.test.context.junit.jupiter 内の ApplicationContext 使用
修飾子と型メソッド説明static ApplicationContextSpringExtension.getApplicationContext(org.junit.jupiter.api.extension.ExtensionContext context) 提供されたExtensionContextに関連付けられたApplicationContextを取得します。org.springframework.test.context.junit4 内の ApplicationContext 使用
ApplicationContext として宣言されている org.springframework.test.context.junit4 のフィールド修飾子と型フィールド説明protected ApplicationContextAbstractJUnit4SpringContextTests.applicationContextAbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext)を介してこのテストインスタンスに挿入されたApplicationContext。型 ApplicationContext のパラメーターを持つ org.springframework.test.context.junit4 のメソッド修飾子と型メソッド説明final voidAbstractJUnit4SpringContextTests.setApplicationContext(ApplicationContext applicationContext) ApplicationContextAwareセマンティクスを介して提供される、このテストインスタンスによって使用されるApplicationContextを設定します。org.springframework.test.context.support 内の ApplicationContext 使用
修飾子と型メソッド説明DefaultTestContext.getApplicationContext()このテストコンテキストのアプリケーションコンテキストを取得します。final ApplicationContextAbstractDelegatingSmartContextLoader.loadContext(MergedContextConfiguration mergedConfig) ApplicationContextをロードする適切な候補SmartContextLoaderにデリゲートします。final ApplicationContextAbstractGenericContextLoader.loadContext(MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationのGenericApplicationContextをロードします。final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。Spring Framework 6.2.4 時点ではAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints)に置き換えられ、Spring Framework 8.0 で削除される予定final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig, RuntimeHints runtimeHints) AOT 処理のためにApplicationContextをロードするために、適切な候補SmartContextLoaderに委譲します。final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) AOT ランタイム実行のためにApplicationContextをロードするために、適切な候補SmartContextLoaderに委譲します。org.springframework.test.context.testng 内の ApplicationContext 使用
ApplicationContext として宣言されている org.springframework.test.context.testng のフィールド修飾子と型フィールド説明protected ApplicationContextAbstractTestNGSpringContextTests.applicationContextAbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext)を介してこのテストインスタンスに挿入されたApplicationContext。型 ApplicationContext のパラメーターを持つ org.springframework.test.context.testng のメソッド修飾子と型メソッド説明final voidAbstractTestNGSpringContextTests.setApplicationContext(ApplicationContext applicationContext) ApplicationContextAwareセマンティクスを介して提供される、このテストインスタンスによって使用されるApplicationContextを設定します。org.springframework.test.context.web 内の ApplicationContext 使用
修飾子と型メソッド説明final ApplicationContextAbstractGenericWebContextLoader.loadContext(StringSE... locations) final ApplicationContextAbstractGenericWebContextLoader.loadContext(MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationのGenericWebApplicationContextをロードします。org.springframework.test.web.reactive.server 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.test.web.reactive.server のメソッド修飾子と型メソッド説明static WebTestClient.MockServerSpec<?>WebTestClient.bindToApplicationContext(ApplicationContext applicationContext) このオプションを使用して、アプリケーションの Spring 構成またはそのサブセットからサーバーをセットアップします。org.springframework.ui.context.support 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.ui.context.support のメソッド修飾子と型メソッド説明static ThemeSourceUiApplicationContextUtils.initThemeSource(ApplicationContext context) 使用すべきではありません。指定されたアプリケーションコンテキストの ThemeSource を初期化し、"themeSource" という名前の Bean を自動検出します。org.springframework.validation.beanvalidation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.validation.beanvalidation のメソッド修飾子と型メソッド説明voidLocalValidatorFactoryBean.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.context 内の ApplicationContext 使用
org.springframework.web.context 内の ApplicationContext サブインターフェース修飾子と型インターフェース説明interface設定可能な Web アプリケーションコンテキストによって実装されるインターフェース。interfaceWeb アプリケーションの構成を提供するインターフェース。修飾子と型メソッド説明protected ApplicationContextContextLoader.loadParentContext(ServletContextEE servletContext) ルート WebApplicationContext の親コンテキストとして使用される ApplicationContext インスタンスをロードまたは取得するための、デフォルトの実装(サブクラスによってオーバーライドされる可能性がある)を持つテンプレートメソッド。org.springframework.web.context.support 内の ApplicationContext 使用
修飾子と型クラス説明classWeb 環境用のConfigurableWebApplicationContextインターフェースを実装するAbstractRefreshableApplicationContextサブクラス。classコンポーネントクラスを入力として受け入れるWebApplicationContext実装 — 特に@Configurationクラスだけでなく、プレーンな@Componentクラス、jakarta.injectアノテーションを使用する JSR-330 準拠のクラス。classWeb 環境に適したGenericApplicationContextのサブクラス。classGroovyBeanDefinitionReaderで理解されるように、Groovy Bean 定義スクリプトおよび / または XML ファイルから構成を取得するWebApplicationContext実装。classテスト用の静的WebApplicationContext実装。classXmlBeanDefinitionReaderが理解する XML ドキュメントから構成を取得するWebApplicationContext実装。型 ApplicationContext のパラメーターを持つ org.springframework.web.context.support のメソッド修飾子と型メソッド説明protected voidWebApplicationObjectSupport.initApplicationContext(ApplicationContext context) 指定された ApplicationContext がWebApplicationContextの場合、WebApplicationObjectSupport.initServletContext(jakarta.servlet.ServletContext)を呼び出します。org.springframework.web.method 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.method のメソッド修飾子と型メソッド説明static ListSE<ControllerAdviceBean>ControllerAdviceBean.findAnnotatedBeans(ApplicationContext context) 指定されたApplicationContextで@ControllerAdviceのアノテーションが付けられた Bean を見つけ、ControllerAdviceBeanインスタンスとしてラップします。org.springframework.web.reactive 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive のメソッド修飾子と型メソッド説明protected voidDispatcherHandler.initStrategies(ApplicationContext context) voidDispatcherHandler.setApplicationContext(ApplicationContext applicationContext) 型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive のコンストラクター修飾子コンストラクター説明DispatcherHandler(ApplicationContext applicationContext) 指定されたApplicationContextの新しいDispatcherHandlerを作成します。org.springframework.web.reactive.config 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明voidWebFluxConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) 型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.config のコンストラクターorg.springframework.web.reactive.resource 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.resource のメソッドorg.springframework.web.reactive.result.method.annotation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.result.method.annotation のメソッド修飾子と型メソッド説明voidRequestMappingHandlerAdapter.setApplicationContext(ApplicationContext applicationContext) ConfigurableApplicationContextは、メソッド引数のデフォルト値の式を解決し、@ControllerAdviceBean を検出するために必要です。org.springframework.web.reactive.result.view 内の ApplicationContext 使用
修飾子と型メソッド説明AbstractView.getApplicationContext()UrlBasedViewResolver.getApplicationContext()含まれているApplicationContextがあれば、それを返します。protected final ApplicationContextAbstractView.obtainApplicationContext()実際に使用するためにApplicationContextを取得します。型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.result.view のメソッド修飾子と型メソッド説明voidAbstractView.setApplicationContext(ApplicationContext applicationContext) voidUrlBasedViewResolver.setApplicationContext(ApplicationContext applicationContext) 含まれているApplicationContextがあればそれを受け入れます。org.springframework.web.reactive.result.view.script 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.result.view.script のメソッド型 ApplicationContext のパラメーターを持つ org.springframework.web.reactive.result.view.script のコンストラクター修飾子コンストラクター説明RenderingContext(ApplicationContext applicationContext, LocaleSE locale, FunctionSE<StringSE, StringSE> templateLoader, StringSE url) 新しいRenderingContextを作成します。org.springframework.web.server 内の ApplicationContext 使用
修飾子と型メソッド説明ServerWebExchange.getApplicationContext()WebHttpHandlerBuilder.applicationContext(ApplicationContext)で初期化された場合、Web アプリケーションに関連付けられたApplicationContextを返します。ServerWebExchangeDecorator.getApplicationContext()org.springframework.web.server.adapter 内の ApplicationContext 使用
修飾子と型メソッド説明protected ApplicationContextAbstractReactiveWebInitializer.createApplicationContext()WebHttpHandlerBuilder.applicationContextによって検出されたものを含むアプリケーション Bean を含む Spring 構成を返します。DefaultServerWebExchange.getApplicationContext()HttpWebHandlerAdapter.getApplicationContext()設定されたApplicationContextを返します(ある場合)。型 ApplicationContext のパラメーターを持つ org.springframework.web.server.adapter のメソッド修飾子と型メソッド説明static WebHttpHandlerBuilderWebHttpHandlerBuilder.applicationContext(ApplicationContext context) ApplicationContextで Bean を検出して新しいビルダーインスタンスを作成する静的ファクトリメソッド。protected voidAbstractReactiveWebInitializer.refreshApplicationContext(ApplicationContext context) 必要に応じて、指定されたアプリケーションコンテキストをリフレッシュします。protected voidAbstractReactiveWebInitializer.registerCloseListener(ServletContextEE servletContext, ApplicationContext applicationContext) サーブレットコンテキストが破棄されると、指定されたアプリケーションコンテキストを閉じるServletContextListenerEE を登録します。voidHttpWebHandlerAdapter.setApplicationContext(ApplicationContext applicationContext) WebHttpHandlerBuilder.applicationContext(ApplicationContext)を介して初期化されている場合は、Web アプリケーションに関連付けられたApplicationContextを構成します。型 ApplicationContext のパラメーターを持つ org.springframework.web.server.adapter のコンストラクター修飾子コンストラクター説明protectedDefaultServerWebExchange(ServerHttpRequest request, ServerHttpResponse response, WebSessionManager sessionManager, ServerCodecConfigurer codecConfigurer, LocaleContextResolver localeContextResolver, ApplicationContext applicationContext) org.springframework.web.servlet 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet のメソッド修飾子と型メソッド説明protected ObjectSEDispatcherServlet.createDefaultStrategy(ApplicationContext context, ClassSE<?> clazz) デフォルト戦略を作成します。protected WebApplicationContextFrameworkServlet.createWebApplicationContext(ApplicationContext parent) このサーブレットの WebApplicationContext(デフォルトのXmlWebApplicationContextまたは設定されている場合はcustom context class)をインスタンス化します。protected <T> ListSE<T>DispatcherServlet.getDefaultStrategies(ApplicationContext context, ClassSE<T> strategyInterface) 特定の戦略インターフェースのデフォルト戦略オブジェクトのリストを作成します。protected <T> TDispatcherServlet.getDefaultStrategy(ApplicationContext context, ClassSE<T> strategyInterface) 指定された戦略インターフェースのデフォルト戦略オブジェクトを返します。protected voidDispatcherServlet.initStrategies(ApplicationContext context) このサーブレットが使用する戦略オブジェクトを初期化します。protected voidDispatcherServlet.onRefresh(ApplicationContext context) protected voidFrameworkServlet.onRefresh(ApplicationContext context) オーバーライドしてサーブレット固有のリフレッシュ作業を追加できるテンプレートメソッド。voidFrameworkServlet.setApplicationContext(ApplicationContext applicationContext) ApplicationContextAwareを介して Spring によって呼び出され、現在のアプリケーションコンテキストを挿入します。org.springframework.web.servlet.config.annotation 内の ApplicationContext 使用
修飾子と型メソッド説明final ApplicationContextWebMvcConfigurationSupport.getApplicationContext()関連する SpringApplicationContextを返します。型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明protected voidRedirectViewControllerRegistration.setApplicationContext(ApplicationContext applicationContext) protected voidViewControllerRegistration.setApplicationContext(ApplicationContext applicationContext) voidWebMvcConfigurationSupport.setApplicationContext(ApplicationContext applicationContext) たとえば、リソースの読み込みには SpringApplicationContextを設定します。型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.config.annotation のコンストラクター修飾子コンストラクター説明ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContextEE servletContext) 指定されたアプリケーションコンテキストの新しいリソースハンドラーレジストリを作成します。ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContextEE servletContext, ContentNegotiationManager contentNegotiationManager) 指定されたアプリケーションコンテキストの新しいリソースハンドラーレジストリを作成します。ResourceHandlerRegistry(ApplicationContext applicationContext, ServletContextEE servletContext, ContentNegotiationManager contentNegotiationManager, UrlPathHelper pathHelper) 静的リソースへのリクエストのマッピングに使用されるUrlPathHelperも受け入れるResourceHandlerRegistry(ApplicationContext, ServletContext, ContentNegotiationManager)のバリアント。ViewControllerRegistry(ApplicationContext applicationContext) ApplicationContextを使用したクラスコンストラクター。ViewResolverRegistry(ContentNegotiationManager contentNegotiationManager, ApplicationContext context) ContentNegotiationManagerおよびApplicationContextのクラスコンストラクター。org.springframework.web.servlet.handler 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.handler のメソッド修飾子と型メソッド説明voidHandlerMappingIntrospector.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.servlet.mvc.method.annotation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明voidExceptionHandlerExceptionResolver.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.servlet.resource 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.resource のメソッド修飾子と型メソッド説明protected voidResourceUrlProvider.detectResourceHandlers(ApplicationContext appContext) voidResourceUrlProvider.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.servlet.view 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.view のメソッド修飾子と型メソッド説明voidViewResolverComposite.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.servlet.view.groovy 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.view.groovy のメソッド修飾子と型メソッド説明protected voidGroovyMarkupView.initApplicationContext(ApplicationContext context) 起動時に呼び出されます。voidGroovyMarkupConfigurer.setApplicationContext(ApplicationContext applicationContext) org.springframework.web.servlet.view.script 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.view.script のメソッド型 ApplicationContext のパラメーターを持つ org.springframework.web.servlet.view.script のコンストラクター修飾子コンストラクター説明RenderingContext(ApplicationContext applicationContext, LocaleSE locale, FunctionSE<StringSE, StringSE> templateLoader, StringSE url) 新しいRenderingContextを作成します。org.springframework.web.socket.adapter.standard 内の ApplicationContext 使用
修飾子と型メソッド説明protected ApplicationContextConvertingEncoderDecoderSupport.getApplicationContext()アクティブなApplicationContextを返します。org.springframework.web.socket.config.annotation 内の ApplicationContext 使用
型 ApplicationContext のパラメーターを持つ org.springframework.web.socket.config.annotation のメソッド修飾子と型メソッド説明protected voidWebMvcStompEndpointRegistry.setApplicationContext(ApplicationContext applicationContext)
SmartContextLoaderSPI で定義されたメソッドを優先