java.io.Closeable, java.lang.AutoCloseable, SpringApplicationContext, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.ListableBeanFactory, org.springframework.context.ApplicationContext, org.springframework.context.ApplicationEventPublisher, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.Lifecycle, org.springframework.context.MessageSource, org.springframework.core.env.EnvironmentCapable, org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolverpublic 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| Constructor | 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,
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) |
|
ResourceXmlApplicationContext(org.springframework.core.io.Resource resource,
org.springframework.context.ApplicationContext parent) |
| Modifier and Type | Method | 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) |
addApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, getBeanNamesForType, 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, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, publishEvent, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, resetCommonCaches, setDisplayName, setEnvironment, setParent, start, stop, toStringassertBeanFactoryActive, cancelRefresh, closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesafterPropertiesSet, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdgetConfigResources, initBeanDefinitionReader, setValidatinggetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDatepublishEvent, publishEventcontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchaddApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParentaddProtocolResolver, getClassLoader, getProtocolResolvers, getResource, getResourceByPath, setClassLoadercontainsLocalBean, getParentBeanFactorycontainsBeanDefinition, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotationgetMessage, getMessage, getMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResourcesgetBeanFactoryPostProcessors, getClassLoader, setClassLoader, setDisplayNamepublic 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.AbstractXmlApplicationContextjava.io.IOExceptionprotected void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader reader)
throws org.springframework.beans.BeansException,
java.io.IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextorg.springframework.beans.BeansExceptionjava.io.IOExceptionprotected java.lang.String[] getConfigLocations()
getConfigLocations in class org.springframework.context.support.AbstractRefreshableConfigApplicationContextCopyright © 2005–2018. All rights reserved.