public class ResourceXmlApplicationContext extends org.springframework.context.support.AbstractXmlApplicationContext implements SpringApplicationContext
Resource
as a parameter to load the application contextAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource)
Creates a ResourceXmlApplicationContext which loads the configuration from the specified Resource.
|
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
org.springframework.context.ApplicationContext parent) |
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
java.util.List xmlPreprocessors)
Creates a ResourceXmlApplicationContext which loads the configuration from the specified Resource.
|
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
java.util.List xmlPreprocessors,
org.springframework.context.ApplicationContext parent) |
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
java.util.List xmlPreprocessors,
org.springframework.context.ApplicationContext parent,
java.util.List beanPostProcessors) |
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
java.util.List xmlPreprocessors,
org.springframework.context.ApplicationContext parent,
java.util.List beanPostProcessors,
boolean refresh) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
getConfigLocations() |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader) |
getConfigResources, initBeanDefinitionReader, setValidating
afterPropertiesSet, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setParent, start, stop, toString
getClassLoader, getResource, getResourceByPath, setClassLoader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBeanFactoryPostProcessors, getClassLoader, setClassLoader, setDisplayName
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setId, setParent
getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDate
containsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation
containsLocalBean, getParentBeanFactory
containsBean, getAliases, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
getMessage, getMessage, getMessage
public ResourceXmlApplicationContext(org.springframework.core.io.Resource resource)
resource
- the resource from which the configuration is loadedpublic ResourceXmlApplicationContext(org.springframework.core.io.Resource resource, java.util.List xmlPreprocessors)
resource
- the resource from which the configuration is loadedxmlPreprocessors
- the SpringXmlPreprocessors to apply before passing the xml to Spring for processingpublic ResourceXmlApplicationContext(org.springframework.core.io.Resource resource, org.springframework.context.ApplicationContext parent)
public ResourceXmlApplicationContext(org.springframework.core.io.Resource resource, java.util.List xmlPreprocessors, org.springframework.context.ApplicationContext parent)
public ResourceXmlApplicationContext(org.springframework.core.io.Resource resource, java.util.List xmlPreprocessors, org.springframework.context.ApplicationContext parent, java.util.List beanPostProcessors)
public ResourceXmlApplicationContext(org.springframework.core.io.Resource resource, java.util.List xmlPreprocessors, org.springframework.context.ApplicationContext parent, java.util.List beanPostProcessors, boolean refresh)
protected void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) throws java.io.IOException
loadBeanDefinitions
in class org.springframework.context.support.AbstractXmlApplicationContext
java.io.IOException
protected void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader) throws org.springframework.beans.BeansException, java.io.IOException
loadBeanDefinitions
in class org.springframework.context.support.AbstractXmlApplicationContext
org.springframework.beans.BeansException
java.io.IOException
protected java.lang.String[] getConfigLocations()
getConfigLocations
in class org.springframework.context.support.AbstractRefreshableConfigApplicationContext
Copyright © 2005-2012. All Rights Reserved.