public class GenericXmlWebContextLoader extends AbstractGenericWebContextLoader
AbstractGenericWebContextLoader の具体的な実装。 デフォルトのリソースの場所は、サフィックス "-context.xml" を使用して検出されます。
GenericGroovyXmlWebContextLoader, AnnotationConfigWebContextLoaderlogger| コンストラクターと説明 |
|---|
GenericXmlWebContextLoader() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected StringSE | getResourceSuffix() デフォルトの XML 構成ファイルの検出をサポートするために、 "-context.xml" を返します。 |
protected void | loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)XmlBeanDefinitionReader を使用して、提供された WebMergedContextConfiguration の場所から提供された context に Bean 定義をロードします。 |
protected void | validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig) 提供された WebMergedContextConfiguration に classes が含まれていないことを確認してください。 |
configureWebResources, customizeBeanFactory, customizeContext, loadContext, loadContextcustomizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocationscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected void loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
XmlBeanDefinitionReader を使用して、提供された WebMergedContextConfiguration の場所から提供された context に Bean 定義をロードします。AbstractGenericWebContextLoader の loadBeanDefinitions context - Bean 定義をロードする必要があるコンテキスト webMergedConfig - Web アプリケーションコンテキストの読み込みに使用するマージされたコンテキスト構成 AbstractGenericWebContextLoader.loadBeanDefinitions(org.springframework.web.context.support.GenericWebApplicationContext, org.springframework.test.context.web.WebMergedContextConfiguration)protected StringSE getResourceSuffix()
"-context.xml" を返します。AbstractContextLoader の getResourceSuffix null または空にしない AbstractContextLoader.generateDefaultLocations(Class), AbstractContextLoader.getResourceSuffixes()protected void validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig)
WebMergedContextConfiguration に classes が含まれていないことを確認してください。AbstractGenericWebContextLoader の validateMergedContextConfiguration webMergedConfig - 検証するマージされた構成 AbstractGenericWebContextLoader.validateMergedContextConfiguration(org.springframework.test.context.web.WebMergedContextConfiguration)