类的使用
org.springframework.web.context.support.GenericWebApplicationContext
使用GenericWebApplicationContext的程序包 程序包 说明 org.springframework.test.context.web Web support classes for the Spring TestContext Framework.org.springframework.test.context.web中GenericWebApplicationContext的使用
参数类型为GenericWebApplicationContext的org.springframework.test.context.web中的方法 修饰符和类型 方法 说明 protected voidAbstractGenericWebContextLoader. configureWebResources(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Configures web resources for the supplied web application context (WAC).protected voidAbstractGenericWebContextLoader. customizeContext(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Customize theGenericWebApplicationContextcreated by this context loader after bean definitions have been loaded into the context but before the context is refreshed.protected abstract voidAbstractGenericWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Load bean definitions into the suppliedcontextfrom the locations or classes in the suppliedWebMergedContextConfiguration.protected voidAnnotationConfigWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Register classes in the supplied context from the classes in the suppliedWebMergedContextConfiguration.protected voidGenericGroovyXmlWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfigurationusing aGroovyBeanDefinitionReader.protected voidGenericXmlWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfiguration, using anXmlBeanDefinitionReader.