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(java.lang.String... configLocations)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files and automatically refreshing the context.
|
CTPFileSystemXmlApplicationContext(java.lang.String configLocation)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML file and automatically refreshing the context.
|
CTPFileSystemXmlApplicationContext(java.lang.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(java.lang.String[] configLocations,
boolean refresh)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files.
|
CTPFileSystemXmlApplicationContext(java.lang.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(java.lang.String path)
Resolve resource paths as file system paths.
|
getConfigResources, initBeanDefinitionReader, loadBeanDefinitions, loadBeanDefinitions, setValidatingafterPropertiesSet, getConfigLocations, 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, 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, toStringaddProtocolResolver, getClassLoader, getProtocolResolvers, getResource, setClassLoaderpublic 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(java.lang.String configLocation)
throws org.springframework.beans.BeansException
configLocation - file pathorg.springframework.beans.BeansException - if context creation failedpublic CTPFileSystemXmlApplicationContext(java.lang.String... configLocations)
throws org.springframework.beans.BeansException
configLocations - array of file pathsorg.springframework.beans.BeansException - if context creation failedpublic CTPFileSystemXmlApplicationContext(java.lang.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(java.lang.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(java.lang.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(java.lang.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.DefaultResourceLoaderpath - path to the resourceAbstractRefreshableWebApplicationContext.getResourceByPath(java.lang.String)