作者:书友36110188 | 来源:互联网 | 2023-10-11 07:28
本文整理了Java中org.springframework.context.support.FileSystemXmlApplicationContext.setConfigLoca
本文整理了Java中org.springframework.context.support.FileSystemXmlApplicationContext.setConfigLocations()
方法的一些代码示例,展示了FileSystemXmlApplicationContext.setConfigLocations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileSystemXmlApplicationContext.setConfigLocations()
方法的具体详情如下:
包路径:org.springframework.context.support.FileSystemXmlApplicationContext
类名称:FileSystemXmlApplicationContext
方法名:setConfigLocations
FileSystemXmlApplicationContext.setConfigLocations介绍
暂无
代码示例
代码示例来源:origin: spring-projects/spring-framework
/**
* Create a new FileSystemXmlApplicationContext with the given parent,
* loading the definitions from the given XML files.
* @param configLocations array of file paths
* @param refresh whether to automatically refresh the context,
* loading all bean definitions and creating all singletons.
* Alternatively, call refresh manually after further configuring the context.
* @param parent the parent context
* @throws BeansException if context creation failed
* @see #refresh()
*/
public FileSystemXmlApplicationContext(
String[] configLocations, boolean refresh, @Nullable ApplicationContext parent)
throws BeansException {
super(parent);
setConfigLocations(configLocations);
if (refresh) {
refresh();
}
}
代码示例来源:origin: org.springframework/spring-context
/**
* Create a new FileSystemXmlApplicationContext with the given parent,
* loading the definitions from the given XML files.
* @param configLocations array of file paths
* @param refresh whether to automatically refresh the context,
* loading all bean definitions and creating all singletons.
* Alternatively, call refresh manually after further configuring the context.
* @param parent the parent context
* @throws BeansException if context creation failed
* @see #refresh()
*/
public FileSystemXmlApplicationContext(
String[] configLocations, boolean refresh, @Nullable ApplicationContext parent)
throws BeansException {
super(parent);
setConfigLocations(configLocations);
if (refresh) {
refresh();
}
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Create a new FileSystemXmlApplicationContext with the given parent,
* loading the definitions from the given XML files.
* @param configLocations array of file paths
* @param refresh whether to automatically refresh the context,
* loading all bean definitions and creating all singletons.
* Alternatively, call refresh manually after further configuring the context.
* @param parent the parent context
* @throws BeansException if context creation failed
* @see #refresh()
*/
public FileSystemXmlApplicationContext(
String[] configLocations, boolean refresh, @Nullable ApplicationContext parent)
throws BeansException {
super(parent);
setConfigLocations(configLocations);
if (refresh) {
refresh();
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.springutil
public void refresh() {
FileSystemXmlApplicationContext app = (FileSystemXmlApplicationContext) applicationContext;
app.setConfigLocations(listToArray(configs));
app.refresh();
}
代码示例来源:origin: org.refcodes/refcodes-factory-alt-spring
_applicationContext.setConfigLocations( configLocations );
_applicationContext.refresh();