本文整理了Java中org.apache.commons.configuration.Configuration.getProperties()
方法的一些代码示例,展示了Configuration.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getProperties()
方法的具体详情如下:
包路径:org.apache.commons.configuration.Configuration
类名称:Configuration
方法名:getProperties
[英]Get a list of properties associated with the given configuration key. This method expects the given key to have an arbitrary number of String values, each of which is of the form {code key=value}. These strings are split at the equals sign, and the key parts will become keys of the returned Properties object, the value parts become values.
[中]获取与给定配置键关联的属性列表。此方法要求给定的键具有任意数量的字符串值,每个字符串值的形式为{code key=value}。这些字符串在等号处拆分,键部分将成为返回属性对象的键,值部分将成为值。
代码示例来源:origin: com.netflix.archaius/archaius-core
/**
* Delegates to the underlying configuration.
*/
@Override
public Properties getProperties(String key) {
return config.getProperties(key);
}
代码示例来源:origin: org.jboss.forge/forge-shell
@Override
public Properties getProperties(final String key)
{
return delegate.getProperties(key);
}
代码示例来源:origin: com.netflix.archaius/archaius-legacy
/**
* Delegates to the underlying configuration.
*/
@Override
public Properties getProperties(String key) {
return config.getProperties(key);
}
代码示例来源:origin: com.nesscomputing.components/ness-config
@Override
public Properties getProperties(String key) {
return delegate.getProperties(key);
}
代码示例来源:origin: org.apache.bookkeeper/bookkeeper-common
@Override
public Properties getProperties(String key) {
return conf.getProperties(getKeyName(key));
}
代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-core
/**
* The system properties to be set in the ParameterisedDriver.
*
* @return the parameter value, or empty Properties if null.
*/
public static Properties getTestSeleniumParameterisedDriverSysProperties() {
return get().getProperties(TEST_SELENIUM_PARAMETERISED_DRIVER_SYS_PROPERTIES);
}
代码示例来源:origin: com.github.bordertech.webfriends/webfriends-selenium
/**
* The WebDriver capabilities for the given driver type.
*
* @param driverType the driver type.
* @return the parameter value if set, or empty properties if not set.
*/
public static Properties getDriverCapabilities(final String driverType) {
String paramName = MessageFormat.format(SELENIUM_DRIVER_CAPABILITIES, driverType);
return get().getProperties(paramName);
}
代码示例来源:origin: pl.edu.icm.synat/synat-platform-api
@Override
public Properties getProperties(final String key) {
return configuration.getProperties(childNodeKey(key));
}
代码示例来源:origin: com.github.bordertech.wcomponents/wcomponents-core
/**
* The WebDriver capabilities for the given driver type.
*
* @param driverType the driver type.
* @return the parameter value if set, or empty properties if not set.
*/
public static Properties getTestSeleniumDriverCapabilities(final String driverType) {
String paramName = MessageFormat.format(TEST_SELENIUM_DRIVER_CAPABILITIES, driverType);
return get().getProperties(paramName);
}
代码示例来源:origin: ManyDesigns/Portofino
public AnnotationsManager() {
annotationClassMap = new HashMap<Class, Class>();
Properties mappings = elementsConfiguration.getProperties(
ElementsProperties.ANNOTATIONS_IMPLEMENTATION_LIST);
if (mappings == null) {
logger.debug("Empty list");
return;
}
for (Map.Entry<Object, Object> mapping : mappings.entrySet()) {
String annotationName = (String) mapping.getKey();
String annotationImplName = (String) mapping.getValue();
addAnnotationMapping(annotationName, annotationImplName);
}
}
代码示例来源:origin: com.manydesigns/elements
public AnnotationsManager() {
annotationClassMap = new HashMap<Class, Class>();
Properties mappings = elementsConfiguration.getProperties(
ElementsProperties.ANNOTATIONS_IMPLEMENTATION_LIST);
if (mappings == null) {
logger.debug("Empty list");
return;
}
for (Map.Entry<Object, Object> mapping : mappings.entrySet()) {
String annotationName = (String) mapping.getKey();
String annotationImplName = (String) mapping.getValue();
addAnnotationMapping(annotationName, annotationImplName);
}
}
内容来源于网络,如有侵权,请联系作者删除!