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 FileSystemXmlApplicationContext extends org.springframework.context.support.FileSystemXmlApplicationContext implements SpringApplicationContext
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME| Constructor | Description |
|---|---|
FileSystemXmlApplicationContext(java.lang.String configLocation) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified location on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
java.util.List xmlPreprocessors) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent,
java.util.List xmlPreprocessors) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
java.util.List xmlPreprocessors) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
org.springframework.context.ApplicationContext parent) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
org.springframework.context.ApplicationContext parent,
java.util.List xmlPreprocessors) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified locations on the file system.
|
FileSystemXmlApplicationContext(java.lang.String configLocation,
java.util.List xmlPreprocessors) |
Creates a FileSystemXmlApplicationContext which loads the configuration at the specified location on the file system.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
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, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdgetConfigResources, initBeanDefinitionReader, loadBeanDefinitions, 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, setClassLoadergetResourceByPathcontainsLocalBean, 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 FileSystemXmlApplicationContext(java.lang.String configLocation)
throws org.springframework.beans.BeansException
configLocation - the location of the configuration file on the class pathorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathrefresh - if true the configurations are immedately loaded; otherwise the configurations are not loaded
until refresh() is calledorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
org.springframework.context.ApplicationContext parent)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathparent - the parent of this application contextorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathrefresh - if true the configurations are immedately loaded; otherwise the configurations are not loaded
until refresh() is calledparent - the parent of this application contextorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String configLocation,
java.util.List xmlPreprocessors)
throws org.springframework.beans.BeansException
configLocation - the location of the configuration file on the class pathxmlPreprocessors - the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
java.util.List xmlPreprocessors)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathxmlPreprocessors - the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
java.util.List xmlPreprocessors)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathrefresh - if true the configurations are immedately loaded; otherwise the configurations are not loaded
until refresh() is calledxmlPreprocessors - the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
org.springframework.context.ApplicationContext parent,
java.util.List xmlPreprocessors)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathparent - the parent of this application contextxmlPreprocessors - the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException - if a problem occurs while reading the configurationpublic FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent,
java.util.List xmlPreprocessors)
throws org.springframework.beans.BeansException
configLocations - the locations of the configuration files on the class pathrefresh - if true the configurations are immedately loaded; otherwise the configurations are not loaded
until refresh() is calledparent - the parent of this application contextxmlPreprocessors - the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException - if a problem occurs while reading the configurationprotected void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
throws java.io.IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextjava.io.IOExceptionCopyright © 2005–2018. All rights reserved.