类 AbstractGenericWebContextLoader

java.lang.Object
cn.taketoday.test.context.support.AbstractContextLoader
cn.taketoday.test.context.web.AbstractGenericWebContextLoader
所有已实现的接口:
AotContextLoader, ContextLoader, SmartContextLoader
直接已知子类:
AnnotationConfigWebContextLoader, GenericXmlWebContextLoader

public abstract class AbstractGenericWebContextLoader extends AbstractContextLoader implements AotContextLoader
Abstract, generic extension of AbstractContextLoader that loads a GenericWebApplicationContext.

If instances of concrete subclasses are invoked via the SmartContextLoader SPI, the context will be loaded from the MergedContextConfiguration provided to loadContext(MergedContextConfiguration). In such cases, a SmartContextLoader will decide whether to load the context from locations or annotated classes. Note that AbstractGenericWebContextLoader does not support the loadContext(String... locations) method from the legacy ContextLoader SPI.

Concrete subclasses must provide an appropriate implementation of loadBeanDefinitions(cn.taketoday.web.servlet.support.GenericWebApplicationContext, cn.taketoday.test.context.web.WebMergedContextConfiguration).

从以下版本开始:
4.0
作者:
Sam Brannen, Phillip Webb, Harry Yang
另请参阅: