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_NAMEAPPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_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,
List xmlPreprocessors)
Creates a ResourceXmlApplicationContext which loads the configuration from the specified Resource.
|
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
List xmlPreprocessors,
org.springframework.context.ApplicationContext parent) |
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
List xmlPreprocessors,
org.springframework.context.ApplicationContext parent,
List beanPostProcessors) |
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
List xmlPreprocessors,
org.springframework.context.ApplicationContext parent,
List beanPostProcessors,
boolean refresh) |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
getConfigLocations() |
protected void |
initBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader) |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader) |
getConfigResources, setValidatingafterPropertiesSet, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getApplicationStartup, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getResources, getStartupDate, getType, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setApplicationStartup, setDisplayName, setEnvironment, setParent, start, stop, toStringaddProtocolResolver, clearResourceCaches, getClassLoader, getProtocolResolvers, getResource, getResourceByPath, getResourceCache, setClassLoaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanFactoryPostProcessors, getClassLoader, setClassLoader, setDisplayNameaddApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setApplicationStartup, setEnvironment, setId, setParentgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatecontainsBeanDefinition, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotationcontainsLocalBean, getParentBeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchgetMessage, getMessage, getMessagepublishEvent, publishEventpublic ResourceXmlApplicationContext(org.springframework.core.io.Resource resource)
resource - the resource from which the configuration is loadedpublic ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
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,
List xmlPreprocessors,
org.springframework.context.ApplicationContext parent)
public ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
List xmlPreprocessors,
org.springframework.context.ApplicationContext parent,
List beanPostProcessors)
protected void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
throws IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextIOExceptionprotected void initBeanDefinitionReader(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader)
initBeanDefinitionReader in class org.springframework.context.support.AbstractXmlApplicationContextprotected void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader)
throws org.springframework.beans.BeansException,
IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextorg.springframework.beans.BeansExceptionIOExceptionprotected String[] getConfigLocations()
getConfigLocations in class org.springframework.context.support.AbstractRefreshableConfigApplicationContextCopyright © 2005–2023 The Apache Software Foundation. All rights reserved.