类的使用
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 void
AbstractGenericWebContextLoader. configureWebResources(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Configures web resources for the supplied web application context (WAC).protected void
AbstractGenericWebContextLoader. customizeContext(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Customize theGenericWebApplicationContext
created by this context loader after bean definitions have been loaded into the context but before the context is refreshed.protected abstract void
AbstractGenericWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Load bean definitions into the suppliedcontext
from the locations or classes in the suppliedWebMergedContextConfiguration
.protected void
AnnotationConfigWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Register classes in the supplied context from the classes in the suppliedWebMergedContextConfiguration
.protected void
GenericGroovyXmlWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Load bean definitions into the suppliedcontext
from the locations in the suppliedWebMergedContextConfiguration
using aGroovyBeanDefinitionReader
.protected void
GenericXmlWebContextLoader. loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
Load bean definitions into the suppliedcontext
from the locations in the suppliedWebMergedContextConfiguration
, using anXmlBeanDefinitionReader
.