public class TinyGenericXmlContextLoader extends AbstractGenericContextLoader
logger
Constructor and Description |
---|
TinyGenericXmlContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.beans.factory.support.BeanDefinitionReader |
createBeanDefinitionReader(org.springframework.context.support.GenericApplicationContext context)
Create a new
XmlBeanDefinitionReader . |
String |
getResourceSuffix()
Returns "
-context.xml ". |
protected void |
postRefresh(org.springframework.context.support.GenericApplicationContext context) |
protected void |
prepareContext(org.springframework.context.support.GenericApplicationContext context)
Prepare the
GenericApplicationContext created by this ContextLoader. |
customizeBeanFactory, customizeContext, loadContext
customizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
protected org.springframework.beans.factory.support.BeanDefinitionReader createBeanDefinitionReader(org.springframework.context.support.GenericApplicationContext context)
XmlBeanDefinitionReader
.createBeanDefinitionReader
in class AbstractGenericContextLoader
context
- the context for which the BeanDefinitionReader should be createdXmlBeanDefinitionReader
public String getResourceSuffix()
-context.xml
".getResourceSuffix
in class org.springframework.test.context.support.AbstractContextLoader
protected void prepareContext(org.springframework.context.support.GenericApplicationContext context)
AbstractGenericContextLoader
GenericApplicationContext
created by this ContextLoader.
Called before bean definitions are read.
The default implementation is empty. Can be overridden in subclasses to customize GenericApplicationContext's standard settings.
prepareContext
in class AbstractGenericContextLoader
context
- the context for which the BeanDefinitionReader should be createdAbstractGenericContextLoader.loadContext(java.lang.String...)
,
GenericApplicationContext.setResourceLoader(org.springframework.core.io.ResourceLoader)
,
AbstractApplicationContext.setId(java.lang.String)
protected void postRefresh(org.springframework.context.support.GenericApplicationContext context)
postRefresh
in class AbstractGenericContextLoader
Copyright © 2006–2018 TinyGroup. All rights reserved.