クラス GenericGroovyXmlWebContextLoader
java.lang.ObjectSE
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.web.AbstractGenericWebContextLoader
org.springframework.test.context.web.GenericXmlWebContextLoader
org.springframework.test.context.web.GenericGroovyXmlWebContextLoader
- 実装されたすべてのインターフェース:
AotContextLoader
、ContextLoader
、SmartContextLoader
Groovy スクリプトおよび XML 構成ファイルから Bean 定義をロードする
AbstractGenericWebContextLoader
の具体的な実装。 デフォルトのリソースの場所は、サフィックス "-context.xml"
および "Context.groovy"
を使用して検出されます。
- 導入:
- 4.1
- 作成者:
- Sam Brannen
- 関連事項:
フィールドのサマリー
クラス org.springframework.test.context.web.AbstractGenericWebContextLoader から継承されたフィールド
logger
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected StringSE
GenericGroovyXmlWebContextLoader
は、デフォルトの検出のために Groovy と XML の両方のリソース型をサポートします。protected StringSE[]
デフォルトの XML 構成ファイルまたは Groovy スクリプトの検出をサポートするために、"-context.xml" and "Context.groovy"
を返します。protected void
loadBeanDefinitions
(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) GroovyBeanDefinitionReader
を使用して、提供されたWebMergedContextConfiguration
の場所から提供されたcontext
に Bean 定義をロードします。クラス org.springframework.test.context.web.GenericXmlWebContextLoader から継承されたメソッド
validateMergedContextConfiguration
クラス org.springframework.test.context.web.AbstractGenericWebContextLoader から継承されたメソッド
configureWebResources, createContext, customizeBeanFactory, customizeContext, loadContext, loadContext, loadContextForAotProcessing, loadContextForAotProcessing, loadContextForAotRuntime
クラス org.springframework.test.context.support.AbstractContextLoader から継承されたメソッド
customizeContext, generateDefaultLocations, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.test.context.SmartContextLoader から継承されたメソッド
processContextConfiguration, processLocations
コンストラクターの詳細
GenericGroovyXmlWebContextLoader
public GenericGroovyXmlWebContextLoader()
メソッドの詳細
loadBeanDefinitions
protected void loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) GroovyBeanDefinitionReader
を使用して、提供されたWebMergedContextConfiguration
の場所から提供されたcontext
に Bean 定義をロードします。- オーバーライド:
- クラス
GenericXmlWebContextLoader
のloadBeanDefinitions
- パラメーター:
context
- Bean 定義をロードする必要があるコンテキストwebMergedConfig
- マージされたコンテキスト構成- 関連事項:
getResourceSuffixes
デフォルトの XML 構成ファイルまたは Groovy スクリプトの検出をサポートするために、"-context.xml" and "Context.groovy"
を返します。- オーバーライド:
- クラス
AbstractContextLoader
のgetResourceSuffixes
- 戻り値:
- リソースのサフィックス。
null
または空にしない - 関連事項:
getResourceSuffix
GenericGroovyXmlWebContextLoader
は、デフォルトの検出のために Groovy と XML の両方のリソース型をサポートします。このメソッドはサポートされていません。- オーバーライド:
- クラス
GenericXmlWebContextLoader
のgetResourceSuffix
- 戻り値:
- リソースのサフィックス。
null
または空にしない - 例外:
UnsupportedOperationExceptionSE
- この実装- 関連事項: