public class MergeFileSystemAndClassPathXMLApplicationContext extends AbstractMergeXMLApplicationContext
One or more source files merge together in pure override mode. Source files are merged in the order specified. If a bean id is repeated in a subsequent source file, the subsequent bean definition will always win. This is the same behavior as Spring's default mechanism for merging 1 to N applicationContext files.
Each patch file is merged with the combined source, one patch file at a time. This merge is performed in true merge mode. Therefore, if a bean id is delivered in a patch file with the same id as a bean in the source, the patch will merge with the source. This could result in an override of the class definition for the bean, or additional or changed property elements within the bean definition.
Modifier and Type | Class and Description |
---|---|
static class |
MergeFileSystemAndClassPathXMLApplicationContext.ResourceType |
configResources
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
MergeFileSystemAndClassPathXMLApplicationContext(org.springframework.context.ApplicationContext parent) |
MergeFileSystemAndClassPathXMLApplicationContext(LinkedHashMap<String,MergeFileSystemAndClassPathXMLApplicationContext.ResourceType> locations,
org.springframework.context.ApplicationContext parent) |
MergeFileSystemAndClassPathXMLApplicationContext(String[] classPathLocations,
String[] fileSystemLocations) |
MergeFileSystemAndClassPathXMLApplicationContext(String[] classPathLocations,
String[] fileSystemLocations,
org.springframework.context.ApplicationContext parent) |
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
getClassLoader(org.springframework.context.ApplicationContext parent)
This could be advantageous for subclasses to override in order to utilize the parent application context.
|
getConfigResources
initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions, setValidating
afterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toString
getClassLoader, getResource, getResourceByPath, setClassLoader
public MergeFileSystemAndClassPathXMLApplicationContext(org.springframework.context.ApplicationContext parent)
public MergeFileSystemAndClassPathXMLApplicationContext(String[] classPathLocations, String[] fileSystemLocations) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public MergeFileSystemAndClassPathXMLApplicationContext(LinkedHashMap<String,MergeFileSystemAndClassPathXMLApplicationContext.ResourceType> locations, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public MergeFileSystemAndClassPathXMLApplicationContext(String[] classPathLocations, String[] fileSystemLocations, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
protected ClassLoader getClassLoader(org.springframework.context.ApplicationContext parent)
Copyright © 2014. All rights reserved.