クラスの使用
org.springframework.context.support.GenericApplicationContext
GenericApplicationContext を使用するパッケージ
パッケージ
説明
JSR-250「共通」アノテーション、コンポーネントスキャン、Spring 管理オブジェクトを作成するための Java ベースのメタデータなど、アプリケーションコンテキストのアノテーションサポート。
アプリケーションコンテキストの AOT サポート。
ApplicationContext 実装および MessageSource 実装の抽象基本クラスなど、org.springframework.context パッケージをサポートするクラス。
Spring TestContext フレームワークのサポートクラス。
WebApplicationContext 実装やさまざまなユーティリティクラスなど、
org.springframework.web.context
パッケージをサポートするクラス。org.springframework.context.annotation 内の GenericApplicationContext 使用
修飾子と型クラス説明class
コンポーネントクラスを入力として受け入れるスタンドアロンアプリケーションコンテキスト— 特に@Configuration
アノテーション付きクラスだけでなく、プレーン@Component
型およびjakarta.inject
アノテーションを使用する JSR-330 準拠クラスも受け入れます。org.springframework.context.aot 内の GenericApplicationContext 使用
修飾子と型メソッド説明protected abstract GenericApplicationContext
ContextAotProcessor.prepareApplicationContext
(ClassSE<?> applicationClass) ApplicationContextAotGenerator
に対して使用される指定されたアプリケーションエントリポイントのGenericApplicationContext
を準備します。型 GenericApplicationContext のパラメーターを持つ org.springframework.context.aot のメソッド修飾子と型メソッド説明protected org.springframework.javapoet.ClassName
ContextAotProcessor.performAotProcessing
(GenericApplicationContext applicationContext) 指定されたコンテキストの事前処理を実行します。org.springframework.javapoet.ClassName
ApplicationContextAotGenerator.processAheadOfTime
(GenericApplicationContext applicationContext, GenerationContext generationContext) 指定されたGenerationContext
を使用して、指定されたGenericApplicationContext
を事前に処理します。org.springframework.context.support 内の GenericApplicationContext 使用
修飾子と型クラス説明class
GenericApplicationContext
を継承し、GroovyObject
を実装するApplicationContext
実装。AbstractApplicationContext.getBean(java.lang.String)
を使用する代わりに、ドット参照解除構文で Bean を取得できます。class
組み込みの XML サポートを備えた便利なアプリケーションコンテキスト。class
外部構成ソースから Bean 定義を読み取るのではなく、Bean およびメッセージのプログラムによる登録をサポートするApplicationContext
実装。org.springframework.test.context.support 内の GenericApplicationContext 使用
修飾子と型メソッド説明protected GenericApplicationContext
AbstractGenericContextLoader.createContext()
このContextLoader
で使用されるGenericApplicationContext
を作成するためのファクトリメソッド。AbstractGenericContextLoader.loadContextForAotProcessing
(MergedContextConfiguration mergedConfig) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。AbstractGenericContextLoader.loadContextForAotProcessing
(MergedContextConfiguration mergedConfig, RuntimeHints runtimeHints) 提供されたMergedContextConfiguration
に基づいて、AOT ビルド時の処理のためにGenericApplicationContext
をロードします。AbstractGenericContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfiguration
およびApplicationContextInitializer
に基づいて、AOT ランタイム実行用にGenericApplicationContext
をロードします。型 GenericApplicationContext のパラメーターを持つ org.springframework.test.context.support のメソッド修飾子と型メソッド説明protected abstract BeanDefinitionReader
AbstractGenericContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) 提供されたcontext
に Bean 定義をロードするための新しいBeanDefinitionReader
を作成するためのファクトリメソッド。protected BeanDefinitionReader
AnnotationConfigContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) protected BeanDefinitionReader
GenericXmlContextLoader.createBeanDefinitionReader
(GenericApplicationContext context) 新しいXmlBeanDefinitionReader
を作成します。protected void
AbstractGenericContextLoader.customizeContext
(GenericApplicationContext context) Bean 定義がコンテキストにロードされた後でコンテキストがリフレッシュされる前に、このContextLoader
によって作成されたGenericApplicationContext
をカスタマイズします。protected void
AbstractGenericContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供されたMergedContextConfiguration
の場所またはクラスから、提供されたcontext
に Bean 定義をロードします。protected void
AnnotationConfigContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供されたMergedContextConfiguration
のクラスから、提供されたcontext
のクラスを登録します。protected void
GenericGroovyXmlContextLoader.loadBeanDefinitions
(GenericApplicationContext context, MergedContextConfiguration mergedConfig) GroovyBeanDefinitionReader
を使用して、提供されたMergedContextConfiguration
の場所から提供されたcontext
に Bean 定義をロードします。protected void
AbstractGenericContextLoader.prepareContext
(GenericApplicationContext context) このContextLoader
によって作成されたGenericApplicationContext
を準備します。org.springframework.web.context.support 内の GenericApplicationContext 使用
修飾子と型クラス説明class
Web 環境に適したGenericApplicationContext
のサブクラス。class
テスト用の静的WebApplicationContext
実装。
AbstractGenericContextLoader.loadContextForAotProcessing(MergedContextConfiguration, RuntimeHints)
に置き換えられ、Spring Framework 8.0 で削除される予定