クラス GenericXmlContextLoader
java.lang.ObjectSE
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.support.AbstractGenericContextLoader
org.springframework.test.context.support.GenericXmlContextLoader
- 実装されているすべてのインターフェース:
AotContextLoader、ContextLoader、SmartContextLoader
- 既知の直属サブクラス
GenericGroovyXmlContextLoader
XML リソースから Bean 定義を読み取る
AbstractGenericContextLoader の具体的な実装。 デフォルトのリソースの場所は、サフィックス "-context.xml" を使用して検出されます。
- 導入:
- 2.5
- 作成者:
- Sam Brannen
- 関連事項:
フィールドのサマリー
クラス org.springframework.test.context.support.AbstractGenericContextLoader から継承されたフィールド
loggerコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected BeanDefinitionReader新しいXmlBeanDefinitionReaderを作成します。protected StringSEデフォルトの XML 構成ファイルの検出をサポートするために、"-context.xml"を返します。protected voidvalidateMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供されたMergedContextConfigurationにclassesが含まれていないことを確認してください。クラス org.springframework.test.context.support.AbstractGenericContextLoader から継承されたメソッド
createContext, customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, loadContextForAotProcessing, loadContextForAotRuntime, prepareContextクラス org.springframework.test.context.support.AbstractContextLoader から継承されたメソッド
customizeContext, generateDefaultLocations, getResourceSuffixes, 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
コンストラクターの詳細
GenericXmlContextLoader
public GenericXmlContextLoader()
メソッドの詳細
createBeanDefinitionReader
新しいXmlBeanDefinitionReaderを作成します。- 次で指定:
- クラス
AbstractGenericContextLoaderのcreateBeanDefinitionReader - パラメーター:
context-BeanDefinitionReaderを作成する必要があるコンテキスト- 戻り値:
- 新しい
XmlBeanDefinitionReader - 関連事項:
getResourceSuffix
デフォルトの XML 構成ファイルの検出をサポートするために、"-context.xml"を返します。- 次で指定:
- クラス
AbstractContextLoaderのgetResourceSuffix - 戻り値:
- リソースのサフィックス。
nullまたは空にしない - 関連事項:
validateMergedContextConfiguration
提供されたMergedContextConfigurationにclassesが含まれていないことを確認してください。- オーバーライド:
- クラス
AbstractGenericContextLoaderのvalidateMergedContextConfiguration - パラメーター:
mergedConfig- 検証するマージされた構成- 導入:
- 4.0.4
- 関連事項: