クラスの使用
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 GenericApplicationContextContextAotProcessor.prepareApplicationContext(ClassSE<?> applicationClass) ApplicationContextAotGeneratorに対して使用される指定されたアプリケーションエントリポイントのGenericApplicationContextを準備します。型 GenericApplicationContext のパラメーターを持つ org.springframework.context.aot のメソッド修飾子と型メソッド説明protected org.springframework.javapoet.ClassNameContextAotProcessor.performAotProcessing(GenericApplicationContext applicationContext) 指定されたコンテキストの事前処理を実行します。org.springframework.javapoet.ClassNameApplicationContextAotGenerator.processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext) 指定されたGenerationContextを使用して、指定されたGenericApplicationContextを事前に処理します。org.springframework.context.support 内の GenericApplicationContext 使用
修飾子と型クラス説明classGenericApplicationContextを継承し、GroovyObjectを実装するApplicationContext実装。AbstractApplicationContext.getBean(java.lang.String)を使用する代わりに、ドット参照解除構文で Bean を取得できます。class組み込みの XML サポートを備えた便利なアプリケーションコンテキスト。class外部構成ソースから Bean 定義を読み取るのではなく、Bean およびメッセージのプログラムによる登録をサポートするApplicationContext実装。org.springframework.test.context.support 内の GenericApplicationContext 使用
修飾子と型メソッド説明protected GenericApplicationContextAbstractGenericContextLoader.createContext()このContextLoaderで使用されるGenericApplicationContextを作成するためのファクトリメソッド。AbstractGenericContextLoader.loadContextForAotProcessing(MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationに基づいて、AOT ビルド時の処理のためにGenericApplicationContextをロードします。AbstractGenericContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfigurationおよびApplicationContextInitializerに基づいて、AOT ランタイム実行用にGenericApplicationContextをロードします。型 GenericApplicationContext のパラメーターを持つ org.springframework.test.context.support のメソッド修飾子と型メソッド説明protected abstract BeanDefinitionReaderAbstractGenericContextLoader.createBeanDefinitionReader(GenericApplicationContext context) 提供されたcontextに Bean 定義をロードするための新しいBeanDefinitionReaderを作成するためのファクトリメソッド。protected BeanDefinitionReaderAnnotationConfigContextLoader.createBeanDefinitionReader(GenericApplicationContext context) protected BeanDefinitionReaderGenericXmlContextLoader.createBeanDefinitionReader(GenericApplicationContext context) 新しいXmlBeanDefinitionReaderを作成します。protected voidAbstractGenericContextLoader.customizeContext(GenericApplicationContext context) Bean 定義がコンテキストにロードされた後でコンテキストがリフレッシュされる前に、このContextLoaderによって作成されたGenericApplicationContextをカスタマイズします。protected voidAbstractGenericContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationの場所またはクラスから、提供されたcontextに Bean 定義をロードします。protected voidAnnotationConfigContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationのクラスから、提供されたcontextのクラスを登録します。protected voidGenericGroovyXmlContextLoader.loadBeanDefinitions(GenericApplicationContext context, MergedContextConfiguration mergedConfig) GroovyBeanDefinitionReaderを使用して、提供されたMergedContextConfigurationの場所から提供されたcontextに Bean 定義をロードします。protected voidAbstractGenericContextLoader.prepareContext(GenericApplicationContext context) このContextLoaderによって作成されたGenericApplicationContextを準備します。org.springframework.web.context.support 内の GenericApplicationContext 使用
修飾子と型クラス説明classWeb 環境に適したGenericApplicationContextのサブクラス。classテスト用の静的WebApplicationContext実装。