インターフェースの使用
org.springframework.context.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 使用
修飾子と型インターフェース説明interface
事前に生成された成果物を使用してConfigurableApplicationContext
を初期化するために使用される特殊化されたApplicationContextInitializer
。修飾子と型メソッド説明static <C extends ConfigurableApplicationContext>
ApplicationContextInitializer<C>AotApplicationContextInitializer.instantiateInitializer
(StringSE initializerClassName, ClassLoaderSE classLoader) org.springframework.test.context 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明SetSE<ClassSE<? extends ApplicationContextInitializer<?>>>
MergedContextConfiguration.getContextInitializerClasses()
テストクラスのマージされたApplicationContextInitializer
クラスを取得します。ClassSE<? extends ApplicationContextInitializer<?>>[]
ContextConfigurationAttributes.getInitializers()
@ContextConfiguration
を介して宣言されたApplicationContextInitializer
クラスを取得します。修飾子コンストラクター説明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
を取得します。修飾子と型メソッド説明AotTestContextInitializers.getContextInitializerClass
(ClassSE<?> testClass) 指定されたテストクラスの AOTApplicationContextInitializer
Class
SE を取得します。修飾子と型メソッド説明AotContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfiguration
およびApplicationContextInitializer
に基づいて、AOT ランタイム実行用に新しいApplicationContext
をロードします。org.springframework.test.context.support 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明final ApplicationContext
AbstractDelegatingSmartContextLoader.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 使用
修飾子と型メソッド説明AbstractGenericWebContextLoader.loadContextForAotRuntime
(MergedContextConfiguration mergedConfig, ApplicationContextInitializer<ConfigurableApplicationContext> initializer) 提供されたMergedContextConfiguration
およびApplicationContextInitializer
に基づいて、AOT ランタイム実行用にGenericWebApplicationContext
をロードします。修飾子コンストラクター説明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
の作成に使用されているルートアプリケーションコンテキストに適用されるアプリケーションコンテキスト初期化子を指定します。修飾子と型メソッド説明ContextLoader.determineContextInitializerClasses
(ServletContextEE servletContext) ContextLoader.CONTEXT_INITIALIZER_CLASSES_PARAM
で指定されている場合に使用するApplicationContextInitializer
実装クラスを返します。修飾子と型メソッド説明void
ContextLoader.setContextInitializers
(ApplicationContextInitializer<?>... initializers) このContextLoader
で使用されるアプリケーションコンテキストを初期化するために使用するApplicationContextInitializer
インスタンスを指定します。org.springframework.web.servlet 内の ApplicationContextInitializer 使用
修飾子と型メソッド説明void
FrameworkServlet.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)
を推奨