public class ClassPathXmlApplicationContext extends org.springframework.context.support.ClassPathXmlApplicationContext implements SpringApplicationContext
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 |
---|
ClassPathXmlApplicationContext(String configLocation)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified location on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
org.springframework.context.ApplicationContext parent)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
org.springframework.context.ApplicationContext parent,
List xmlPreprocessors)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
boolean refresh)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent,
List xmlPreprocessors)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
boolean refresh,
List xmlPreprocessors)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String[] configLocations,
List xmlPreprocessors)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified locations on the class
path.
|
ClassPathXmlApplicationContext(String configLocation,
List xmlPreprocessors)
Creates a ClassPathXmlApplicationContext which loads the configuration at the specified location on the class
path.
|
Modifier and Type | Method and Description |
---|---|
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
getConfigResources
initBeanDefinitionReader, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBeanFactoryPostProcessors, getClassLoader, setClassLoader, setDisplayName
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setEnvironment, setId, setParent
getApplicationName, 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 ClassPathXmlApplicationContext(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 ClassPathXmlApplicationContext(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 ClassPathXmlApplicationContext(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 ClassPathXmlApplicationContext(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 ClassPathXmlApplicationContext(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 ClassPathXmlApplicationContext(String configLocation, List xmlPreprocessors) throws org.springframework.beans.BeansException
configLocation
- the location of the configuration file on the classpathxmlPreprocessors
- the SpringXmlPreprocessors to apply before passing the xml to Spring for processingorg.springframework.beans.BeansException
- if a problem occurs while reading the configurationpublic ClassPathXmlApplicationContext(String[] configLocations, 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 ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, 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 ClassPathXmlApplicationContext(String[] configLocations, org.springframework.context.ApplicationContext parent, 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 ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, org.springframework.context.ApplicationContext parent, 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 IOException
loadBeanDefinitions
in class org.springframework.context.support.AbstractXmlApplicationContext
IOException
Copyright © 2005–2016. All rights reserved.