本文整理匯總了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"));
}
示例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));
}
}
示例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"));
}
示例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"));
}