インターフェースの使用
org.springframework.context.ApplicationContextInitializer
ApplicationContextInitializer を使用するパッケージ
パッケージ
説明
アプリケーションコンテキストの AOT サポート。
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
Spring TestContext フレームワークの事前 (AOT) サポート。
Spring TestContext フレームワークのサポートクラス。
Web は、Spring TestContext フレームワークのクラスをサポートします。
Web アプリケーションのアプリケーションコンテキストインターフェースのバリアントと、ルート Web アプリケーションコンテキストをブートストラップする ContextLoaderListener が含まれています。
アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
Spring の Web MVC フレームワークのサポートクラス。
org.springframework.context.aot 内の ApplicationContextInitializer 使用
org.springframework.context.aot 内の ApplicationContextInitializer サブインターフェース修飾子と型インターフェース説明interface事前に生成された成果物を使用してConfigurableApplicationContextを初期化するために使用される特殊化されたApplicationContextInitializer。修飾子と型メソッド説明static <C extends ConfigurableApplicationContext>
ApplicationContextInitializer<C>AotApplicationContextInitializer.instantiateInitializer(StringSE initializerClassName, ClassLoaderSE classLoader) org.springframework.test.context 内の ApplicationContextInitializer 使用
型 ApplicationContextInitializer の引数を持つ型を返す org.springframework.test.context のメソッド修飾子と型メソッド説明SetSE<ClassSE<? extends ApplicationContextInitializer<?>>>MergedContextConfiguration.getContextInitializerClasses()テストクラスのマージされたApplicationContextInitializerクラスを取得します。ClassSE<? extends ApplicationContextInitializer<?>>[]ContextConfigurationAttributes.getInitializers()@ContextConfigurationを介して宣言されたApplicationContextInitializerクラスを取得します。型 ApplicationContextInitializer の型引数を持つ org.springframework.test.context のコンストラクターパラメーター修飾子コンストラクター説明MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 使用すべきではありません。MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しいMergedContextConfigurationインスタンスを作成します。MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ContextLoader contextLoader) 指定されたパラメーターの新しいMergedContextConfigurationインスタンスを作成します。MergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しいMergedContextConfigurationインスタンスを作成します。org.springframework.test.context.aot 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明AotTestContextInitializers.getContextInitializer(ClassSE<?> testClass) 指定されたテストクラスの AOTApplicationContextInitializerを取得します。型 ApplicationContextInitializer の引数を持つ型を返す org.springframework.test.context.aot のメソッド修飾子と型メソッド説明AotTestContextInitializers.getContextInitializerClass(ClassSE<?> testClass) 指定されたテストクラスの AOTApplicationContextInitializerClassSE を取得します。型 ApplicationContextInitializer のパラメーターを持つ org.springframework.test.context.aot のメソッド修飾子と型メソッド説明AotContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfigurationおよびApplicationContextInitializerに基づいて、AOT ランタイム実行用に新しいApplicationContextをロードします。org.springframework.test.context.support 内の ApplicationContextInitializer 使用
型 ApplicationContextInitializer のパラメーターを持つ org.springframework.test.context.support のメソッド修飾子と型メソッド説明final ApplicationContextAbstractDelegatingSmartContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) AOT ランタイム実行のためにApplicationContextをロードするために、適切な候補SmartContextLoaderに委譲します。AbstractGenericContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfigurationおよびApplicationContextInitializerに基づいて、AOT ランタイム実行用にGenericApplicationContextをロードします。org.springframework.test.context.web 内の ApplicationContextInitializer 使用
型 ApplicationContextInitializer のパラメーターを持つ org.springframework.test.context.web のメソッド修飾子と型メソッド説明AbstractGenericWebContextLoader.loadContextForAotRuntime(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfigurationおよびApplicationContextInitializerに基づいて、AOT ランタイム実行用にGenericWebApplicationContextをロードします。型 ApplicationContextInitializer の型引数を持つ org.springframework.test.context.web のコンストラクターパラメーター修飾子コンストラクター説明WebMergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) WebMergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, StringSE[] propertySourceLocations, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) WebMergedContextConfiguration(ClassSE<?> testClass, StringSE[] locations, ClassSE<?>[] classes, SetSE<ClassSE<? extends ApplicationContextInitializer<?>>> contextInitializerClasses, StringSE[] activeProfiles, ListSE<PropertySourceDescriptor> propertySourceDescriptors, StringSE[] propertySourceProperties, SetSE<ContextCustomizer> contextCustomizers, StringSE resourceBasePath, ContextLoader contextLoader, CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate, MergedContextConfiguration parent) 指定されたパラメーターの新しいWebMergedContextConfigurationインスタンスを作成します。org.springframework.web.context 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明protected ApplicationContextInitializer<?>[]AbstractContextLoaderInitializer.getRootApplicationContextInitializers()ContextLoaderListenerの作成に使用されているルートアプリケーションコンテキストに適用されるアプリケーションコンテキスト初期化子を指定します。型 ApplicationContextInitializer の引数を持つ型を返す org.springframework.web.context のメソッド修飾子と型メソッド説明ContextLoader.determineContextInitializerClasses(ServletContextEE servletContext) ContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAMで指定されている場合に使用するApplicationContextInitializer実装クラスを返します。型 ApplicationContextInitializer のパラメーターを持つ org.springframework.web.context のメソッド修飾子と型メソッド説明voidContextLoader.setContextInitializers(ApplicationContextInitializer<?>... initializers) このContextLoaderで使用されるアプリケーションコンテキストを初期化するために使用するApplicationContextInitializerインスタンスを指定します。org.springframework.web.servlet 内の ApplicationContextInitializer 使用
型 ApplicationContextInitializer のパラメーターを持つ org.springframework.web.servlet のメソッド修飾子と型メソッド説明voidFrameworkServlet.setContextInitializers(ApplicationContextInitializer<?>... initializers) このFrameworkServletで使用されるアプリケーションコンテキストを初期化するために使用するApplicationContextInitializerインスタンスを指定します。org.springframework.web.servlet.support 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明protected ApplicationContextInitializer<?>[]AbstractDispatcherServletInitializer.getServletApplicationContextInitializers()DispatcherServletが作成されるサーブレット固有のアプリケーションコンテキストに適用されるアプリケーションコンテキスト初期化子を指定します。
MergedContextConfiguration(Class, String[], Class[], Set, String[], List, String[], Set, ContextLoader, CacheAwareContextLoaderDelegate, MergedContextConfiguration)を推奨