gpt4 book ai didi

org.springframework.extensions.config.xml.XMLConfigService.getGlobalConfig()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 10:19:05 25 4
gpt4 key购买 nike

本文整理了Java中org.springframework.extensions.config.xml.XMLConfigService.getGlobalConfig()方法的一些代码示例,展示了XMLConfigService.getGlobalConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLConfigService.getGlobalConfig()方法的具体详情如下:
包路径:org.springframework.extensions.config.xml.XMLConfigService
类名称:XMLConfigService
方法名:getGlobalConfig

XMLConfigService.getGlobalConfig介绍

暂无

代码示例

代码示例来源:origin: deas/alfresco

this.globalConfig.set(new ConfigImpl((ConfigImpl)xmlConfigService.getGlobalConfig())); // Make a copy of the current global config

代码示例来源:origin: org.springframework.extensions.surf/spring-webscripts

this.globalConfig.set(new ConfigImpl((ConfigImpl)xmlConfigService.getGlobalConfig())); // Make a copy of the current global config

代码示例来源:origin: org.alfresco.surf/spring-webscripts

this.globalConfig.set(new ConfigImpl((ConfigImpl)xmlConfigService.getGlobalConfig())); // Make a copy of the current global config

代码示例来源:origin: org.springframework.extensions.surf/spring-surf

this.globalConfig = new ConfigImpl((ConfigImpl)xmlConfigService.getGlobalConfig()); // Make a copy of the current global config

代码示例来源:origin: org.alfresco.surf/spring-surf

this.globalConfig = new ConfigImpl((ConfigImpl)xmlConfigService.getGlobalConfig()); // Make a copy of the current global config

代码示例来源:origin: deas/alfresco

/**
 * Tests the use of the HTTP source config
 * 
 * TODO: Enable this test when we have an HTTP config resource to load!
 */
public void xtestHTTPSource()
{
  List<String> configFile = new ArrayList<String>(1);
  configFile.add("http://localhost:8080/configservice/config-http.xml");
  XMLConfigService svc = new XMLConfigService(new HTTPConfigSource(configFile));
  svc.initConfig();
  
  Config config = svc.getGlobalConfig();
  assertNotNull(config);
}

代码示例来源:origin: deas/alfresco

/**
 * Tests the use of the class path source config
 * 
 * TODO: Enable this test when we have a classpath config resource to load!
 */
public void xtestClasspathSource()
{
  String configFile = "org/configservice/config-classpath.xml"; 
  XMLConfigService svc = new XMLConfigService(new ClassPathConfigSource(configFile));
  svc.initConfig();
  
  Config config = svc.getGlobalConfig();
  assertNotNull(config);
}

代码示例来源:origin: deas/alfresco

Config globalSection = svc.getGlobalConfig();

代码示例来源:origin: deas/alfresco

Config global = svc.getGlobalConfig();
assertNotNull("Global config should not be null", global);
assertEquals("There shouldn't be any config elements for global", 0, 
global = svc.getGlobalConfig();
assertNotNull("Global config should not be null", global);
assertEquals("There shouldn't be any config elements for global", 0, 
global = svc.getGlobalConfig();
assertNotNull("Global config should not be null", global);
assertEquals("There shouldn't be any config elements for global", 0,

代码示例来源:origin: deas/alfresco

Config globalSection = svc.getGlobalConfig();

代码示例来源:origin: deas/alfresco

/**
 * Tests loading config from a known JAR file
 */
public void testJarSource()
{
  String resDir = this.getResourcesDir();
  String jarFile = "jar:file:" + resDir + "custom-config.jar!/META-INF/web-client-config-custom.xml";
  JarConfigSource source = new JarConfigSource(jarFile);
  XMLConfigService svc = new XMLConfigService(source);
  svc.initConfig();
 
  // make sure the global config is present
  Config config = svc.getGlobalConfig();
  assertNotNull(config);
    // make sure the from address is present and correct
  ConfigElement clientElem = config.getConfigElement("client");
  assertNotNull(clientElem);
  ConfigElement fromAddressElem = clientElem.getChild("from-email-address");
  assertNotNull(fromAddressElem);
  String fromAddress = fromAddressElem.getValue();
  assertEquals("From address should be 'me@somewhere.net'", "me@somewhere.net", fromAddress);
}

代码示例来源:origin: deas/alfresco

Config globalSection = svc.getGlobalConfig();
assertNotNull("global section should not be null", globalSection);

代码示例来源:origin: deas/alfresco

Config globalSection = svc.getGlobalConfig();
assertNotNull("global section should not be null", globalSection);

代码示例来源:origin: deas/alfresco

Config global = svc.getGlobalConfig();
ConfigElement globalItem = global.getConfigElement("global-item");
assertNotNull("globalItem should not be null", globalItem);

代码示例来源:origin: deas/alfresco

Config global = svc.getGlobalConfig();
ConfigElement globalItem = global.getConfigElement("global-item");
assertNotNull("globalItem should not be null", globalItem);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com