public class GenericXmlContextLoader extends AbstractGenericContextLoader
AbstractGenericContextLoader
の具体的な実装。 デフォルトのリソースの場所は、サフィックス "-context.xml"
を使用して検出されます。
XmlBeanDefinitionReader
, GenericGroovyXmlContextLoader
, AnnotationConfigContextLoader
logger
コンストラクターと説明 |
---|
GenericXmlContextLoader() |
修飾子と型 | メソッドと説明 |
---|---|
protected BeanDefinitionReader | createBeanDefinitionReader(GenericApplicationContext context) 新しい XmlBeanDefinitionReader を作成します。 |
protected StringSE | getResourceSuffix() デフォルトの XML 構成ファイルの検出をサポートするために、 "-context.xml" を返します。 |
protected void | validateMergedContextConfiguration(MergedContextConfiguration mergedConfig) 提供された MergedContextConfiguration に classes が含まれていないことを確認してください。 |
customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, prepareContext
customizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected BeanDefinitionReader createBeanDefinitionReader(GenericApplicationContext context)
XmlBeanDefinitionReader
を作成します。AbstractGenericContextLoader
の createBeanDefinitionReader
context
- BeanDefinitionReader
を作成する必要があるコンテキスト XmlBeanDefinitionReader
AbstractGenericContextLoader.loadContext(String...)
, AbstractGenericContextLoader.loadBeanDefinitions(org.springframework.context.support.GenericApplicationContext, org.springframework.test.context.MergedContextConfiguration)
, BeanDefinitionReader
protected StringSE getResourceSuffix()
"-context.xml"
を返します。AbstractContextLoader
の getResourceSuffix
null
または空にしない AbstractContextLoader.generateDefaultLocations(Class)
, AbstractContextLoader.getResourceSuffixes()
protected void validateMergedContextConfiguration(MergedContextConfiguration mergedConfig)
MergedContextConfiguration
に classes
が含まれていないことを確認してください。AbstractGenericContextLoader
の validateMergedContextConfiguration
mergedConfig
- 検証するマージされた構成 AbstractGenericContextLoader.validateMergedContextConfiguration(org.springframework.test.context.MergedContextConfiguration)