public abstract class AbstractGenericWebContextLoader extends AbstractContextLoader
Modifier and Type | Field and Description |
---|---|
private static Log |
logger |
Constructor and Description |
---|
AbstractGenericWebContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureWebResources(GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
TODO [SPR-9864] Document configureWebResources().
|
protected void |
customizeBeanFactory(DefaultListableBeanFactory beanFactory,
WebMergedContextConfiguration webMergedConfig)
TODO [SPR-9864] Document customizeBeanFactory().
|
protected void |
customizeContext(GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
TODO [SPR-9864] Document customizeContext().
|
protected abstract void |
loadBeanDefinitions(GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
TODO [SPR-9864] Document loadBeanDefinitions().
|
ConfigurableApplicationContext |
loadContext(MergedContextConfiguration mergedConfig)
TODO [SPR-9864] Document overridden loadContext(MergedContextConfiguration).
|
ApplicationContext |
loadContext(java.lang.String... locations)
TODO [SPR-9864] Document overridden loadContext(String...).
|
generateDefaultLocations, getResourceSuffix, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
public final ConfigurableApplicationContext loadContext(MergedContextConfiguration mergedConfig) throws java.lang.Exception
mergedConfig
- the merged context configuration to use to load the
application contextjava.lang.Exception
- if context loading failedSmartContextLoader.loadContext(org.springframework.test.context.MergedContextConfiguration)
protected void configureWebResources(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
protected void customizeBeanFactory(DefaultListableBeanFactory beanFactory, WebMergedContextConfiguration webMergedConfig)
protected abstract void loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
protected void customizeContext(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
public final ApplicationContext loadContext(java.lang.String... locations) throws java.lang.Exception
locations
- the resource locations to use to load the application contextjava.lang.Exception
- if context loading failedContextLoader.loadContext(java.lang.String[])