类 GenericXmlWebContextLoader
java.lang.Object
cn.taketoday.test.context.support.AbstractContextLoader
cn.taketoday.test.context.web.AbstractGenericWebContextLoader
cn.taketoday.test.context.web.GenericXmlWebContextLoader
- 所有已实现的接口:
AotContextLoader,ContextLoader,SmartContextLoader
Concrete implementation of
AbstractGenericWebContextLoader that loads
bean definitions from XML resources.
Default resource locations are detected using the suffix
"-context.xml".
- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Harry Yang
- 另请参阅:
-
字段概要
从类继承的字段 cn.taketoday.test.context.web.AbstractGenericWebContextLoader
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected StringReturns"-context.xml"in order to support detection of a default XML config file.protected voidloadBeanDefinitions(cn.taketoday.web.servlet.support.GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfiguration, using anXmlBeanDefinitionReader.protected voidvalidateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig) Ensure that the suppliedWebMergedContextConfigurationdoes not containclasses.从类继承的方法 cn.taketoday.test.context.web.AbstractGenericWebContextLoader
configureWebResources, createContext, customizeBeanFactory, customizeContext, loadContext, loadContext, loadContextForAotProcessing, loadContextForAotRuntime从类继承的方法 cn.taketoday.test.context.support.AbstractContextLoader
customizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.test.context.SmartContextLoader
processContextConfiguration, processLocations
-
构造器详细资料
-
GenericXmlWebContextLoader
public GenericXmlWebContextLoader()
-
-
方法详细资料
-
loadBeanDefinitions
protected void loadBeanDefinitions(cn.taketoday.web.servlet.support.GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfiguration, using anXmlBeanDefinitionReader.- 指定者:
loadBeanDefinitions在类中AbstractGenericWebContextLoader- 参数:
context- the context into which the bean definitions should be loadedwebMergedConfig- the merged context configuration to use to load the web application context- 另请参阅:
-
getResourceSuffix
Returns"-context.xml"in order to support detection of a default XML config file.- 指定者:
getResourceSuffix在类中AbstractContextLoader- 返回:
- the resource suffix; never
nullor empty - 另请参阅:
-
validateMergedContextConfiguration
Ensure that the suppliedWebMergedContextConfigurationdoes not containclasses.- 覆盖:
validateMergedContextConfiguration在类中AbstractGenericWebContextLoader- 参数:
webMergedConfig- the merged configuration to validate- 另请参阅:
-