org.apache.felix.utils.properties.Properties.putAll()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(143)

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

Properties.putAll介绍

暂无

代码示例

代码示例来源:origin: jboss-fuse/fabric8

public static Properties toProperties(Map<String, String> source) {
  if (source instanceof Properties) {
    return (Properties) source;
  }
  Properties rc = new Properties(false);
  rc.putAll(source);
  return rc;
}

代码示例来源:origin: apache/karaf

private static void loadIncludes(String propertyName, boolean mandatory, URL configPropURL, Properties configProps)
    throws Exception {
  String includes = configProps.get(propertyName);
  if (includes != null) {
    StringTokenizer st = new StringTokenizer(includes, "\" ", true);
    if (st.countTokens() > 0) {
      String location;
      do {
        location = nextLocation(st);
        if (location != null) {
          URL url = new URL(configPropURL, location);
          Properties props = loadPropertiesFile(url, mandatory);
          configProps.putAll(props);
        }
      }
      while (location != null);
    }
  }
  configProps.remove(propertyName);
}

代码示例来源:origin: apache/karaf

configProperties.putAll(overallEffective.getConfig());
configProperties.save();
systemProperties.putAll(overallEffective.getSystem());
systemProperties.save();

代码示例来源:origin: org.apache.karaf.profile/org.apache.karaf.profile.core

configProperties.putAll(overallEffective.getConfig());
configProperties.save();
systemProperties.putAll(overallEffective.getSystem());
systemProperties.save();

相关文章