public class CTPFileSystemXmlApplicationContext
extends org.springframework.context.support.AbstractXmlApplicationContext
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
构造器和说明 |
---|
CTPFileSystemXmlApplicationContext()
Create a new FileSystemXmlApplicationContext for bean-style configuration.
|
CTPFileSystemXmlApplicationContext(org.springframework.context.ApplicationContext parent)
Create a new FileSystemXmlApplicationContext for bean-style configuration.
|
CTPFileSystemXmlApplicationContext(String... configLocations)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files and automatically refreshing the context.
|
CTPFileSystemXmlApplicationContext(String configLocation)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML file and automatically refreshing the context.
|
CTPFileSystemXmlApplicationContext(String[] configLocations,
org.springframework.context.ApplicationContext parent)
Create a new FileSystemXmlApplicationContext with the given parent,
loading the definitions from the given XML files and automatically
refreshing the context.
|
CTPFileSystemXmlApplicationContext(String[] configLocations,
boolean refresh)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files.
|
CTPFileSystemXmlApplicationContext(String[] configLocations,
boolean refresh,
org.springframework.context.ApplicationContext parent)
Create a new FileSystemXmlApplicationContext with the given parent,
loading the definitions from the given XML files.
|
限定符和类型 | 方法和说明 |
---|---|
protected org.springframework.core.io.Resource |
getResourceByPath(String path)
Resolve resource paths as file system paths.
|
getConfigResources, initBeanDefinitionReader, loadBeanDefinitions, 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, setClassLoader
public CTPFileSystemXmlApplicationContext()
AbstractRefreshableConfigApplicationContext.setConfigLocation(java.lang.String)
,
AbstractRefreshableConfigApplicationContext.setConfigLocations(java.lang.String[])
,
AbstractRefreshableConfigApplicationContext.afterPropertiesSet()
public CTPFileSystemXmlApplicationContext(org.springframework.context.ApplicationContext parent)
parent
- the parent contextAbstractRefreshableConfigApplicationContext.setConfigLocation(java.lang.String)
,
AbstractRefreshableConfigApplicationContext.setConfigLocations(java.lang.String[])
,
AbstractRefreshableConfigApplicationContext.afterPropertiesSet()
public CTPFileSystemXmlApplicationContext(String configLocation) throws org.springframework.beans.BeansException
configLocation
- file pathorg.springframework.beans.BeansException
- if context creation failedpublic CTPFileSystemXmlApplicationContext(String... configLocations) throws org.springframework.beans.BeansException
configLocations
- array of file pathsorg.springframework.beans.BeansException
- if context creation failedpublic CTPFileSystemXmlApplicationContext(String[] configLocations, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
configLocations
- array of file pathsparent
- the parent contextorg.springframework.beans.BeansException
- if context creation failedpublic CTPFileSystemXmlApplicationContext(String[] configLocations, boolean refresh) throws org.springframework.beans.BeansException
configLocations
- array of file pathsrefresh
- whether to automatically refresh the context,
loading all bean definitions and creating all singletons.
Alternatively, call refresh manually after further configuring the context.org.springframework.beans.BeansException
- if context creation failedAbstractApplicationContext.refresh()
public CTPFileSystemXmlApplicationContext(String[] configLocations, boolean refresh, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
configLocations
- array of file pathsrefresh
- whether to automatically refresh the context,
loading all bean definitions and creating all singletons.
Alternatively, call refresh manually after further configuring the context.parent
- the parent contextorg.springframework.beans.BeansException
- if context creation failedAbstractApplicationContext.refresh()
protected org.springframework.core.io.Resource getResourceByPath(String path)
Note: Even if a given path starts with a slash, it will get interpreted as relative to the current VM working directory. This is consistent with the semantics in a Servlet container.
getResourceByPath
在类中 org.springframework.core.io.DefaultResourceLoader
path
- path to the resourceAbstractRefreshableWebApplicationContext.getResourceByPath(java.lang.String)
Copyright © 2016–2017. All rights reserved.