當前位置: 首頁>>代碼示例>>Java>>正文


Java XMLConfiguration.configurationAt方法代碼示例

本文整理匯總了Java中org.apache.commons.configuration.XMLConfiguration.configurationAt方法的典型用法代碼示例。如果您正苦於以下問題:Java XMLConfiguration.configurationAt方法的具體用法?Java XMLConfiguration.configurationAt怎麽用?Java XMLConfiguration.configurationAt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.apache.commons.configuration.XMLConfiguration的用法示例。


在下文中一共展示了XMLConfiguration.configurationAt方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getLPlatformDescriptorConfiguration

import org.apache.commons.configuration.XMLConfiguration; //導入方法依賴的package包/類
/**
 * Retrieves a list of templates available for the tenant.
 * 
 * @param descriptorId
 * @return the list
 * @throws RORException
 */
public LPlatformDescriptorConfiguration getLPlatformDescriptorConfiguration(
		String descriptorId) throws IaasException {
	HashMap<String, String> request = getBasicParameters();
	request.put(LParameter.ACTION, LOperation.GET_LPLATFORM_DESCR_CONFIG);
	request.put(LParameter.LPLATFORM_DESCR_ID, descriptorId);
	XMLConfiguration result = execute(request);
	return new LPlatformDescriptorConfiguration(
			result.configurationAt("lplatformdescriptor"));
}
 
開發者ID:servicecatalog,項目名稱:development,代碼行數:17,代碼來源:RORClient.java

示例2: extractMQSCAttributeAndValueForReplacement

import org.apache.commons.configuration.XMLConfiguration; //導入方法依賴的package包/類
private void extractMQSCAttributeAndValueForReplacement(
		XMLConfiguration config, String environment, List<String> mqscVars,
		List<String> mqscVarValues) {
	SubnodeConfiguration localSubnodeConfig = config.configurationAt(environment);
	
	for(Iterator<String> iter = localSubnodeConfig.getKeys();iter.hasNext();){
		String key = iter.next();
		mqscVars.add(MQSC_VAR_PREFIX + key + MQSC_VAR_SUFFIX);
		mqscVarValues.add(config.getString(environment + "." + key));
	}
}
 
開發者ID:anair-it,項目名稱:wmq-mqsc-mojo,代碼行數:12,代碼來源:MqscMojo.java

示例3: getConfiguration

import org.apache.commons.configuration.XMLConfiguration; //導入方法依賴的package包/類
public LPlatformConfiguration getConfiguration() throws IaasException,
        SuspendException {
    XMLConfiguration result = executeLPlatformAction(LOperation.GET_LPLATFORM_CONFIG);
    return new LPlatformConfiguration(result.configurationAt("lplatform"));
}
 
開發者ID:servicecatalog,項目名稱:development,代碼行數:6,代碼來源:LPlatformClient.java

示例4: getConfiguration

import org.apache.commons.configuration.XMLConfiguration; //導入方法依賴的package包/類
/**
 * @return the configuration
 * @throws RORException
 */
public LServerConfiguration getConfiguration() throws IaasException {
    XMLConfiguration result = executeLServerAction(LOperation.GET_LSERVER_CONFIG);
    return new LServerConfiguration(result.configurationAt("lserver"));
}
 
開發者ID:servicecatalog,項目名稱:development,代碼行數:9,代碼來源:LServerClient.java


注:本文中的org.apache.commons.configuration.XMLConfiguration.configurationAt方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。