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

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

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

Properties.get介绍

[英]Return the comment footer.
[中]返回注释页脚。

代码示例

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

/**
 * Searches for the property with the specified key in this property list.
 *
 * @param key the property key.
 * @return the value in this property list with the specified key value.
 */
public String getProperty(String key) {
  return this.get(key);
}

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

private void ensureTyped() {
  if (!storage.typed) {
    storage.typed = true;
    Set<String> keys = new HashSet<String>(storage.keySet());
    for (String key : keys) {
      storage.put(key,
            storage.getComments(key),
            Arrays.asList(convertToString(storage.get(key)).split("\n")));
    }
  }
}

代码示例来源:origin: org.everit.osgi.bundles/org.everit.osgi.bundles.org.apache.felix.utils

/**
 * Searches for the property with the specified key in this property list.
 *
 * @param key the property key.
 * @return the value in this property list with the specified key value.
 */
public String getProperty(String key) {
  return this.get(key);
}

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

private void ensureTyped() {
  if (!storage.typed) {
    storage.typed = true;
    Set<String> keys = new HashSet<String>(storage.keySet());
    for (String key : keys) {
      storage.put(key,
            storage.getComments(key),
            Arrays.asList(convertToString(storage.get(key)).split("\n")));
    }
  }
}

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

/**
 * Searches for the property with the specified key in this property list.
 *
 * @param key the property key.
 * @return the value in this property list with the specified key value.
 */
public String getProperty(String key) {
  return this.get(key);
}

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

private void ensureTyped() {
  if (!storage.typed) {
    storage.typed = true;
    Set<String> keys = new HashSet<String>(storage.keySet());
    for (String key : keys) {
      storage.put(key,
            storage.getComments(key),
            Arrays.asList(convertToString(storage.get(key)).split("\n")));
    }
  }
}

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

/**
 * Searches for the property with the specified key in this property list.
 *
 * @param key the property key.
 * @return the value in this property list with the specified key value.
 */
public String getProperty(String key) {
  return this.get(key);
}

代码示例来源:origin: org.apache.felix/org.apache.felix.fileinstall

@Override
public Object get(Object key) {
  String v = storage.get(key);
  return storage.typed && v != null ? convertFromString(v) : v;
}

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

public void createGroup(String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  } else {
    throw new IllegalArgumentException("Group: " + group + " already exist");
  }
}

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

public void createGroup(String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  } else {
    throw new IllegalArgumentException("Group: " + group + " already exist");
  }
}

代码示例来源:origin: org.apache.felix/org.apache.felix.utils

@Override
public Object get(Object key) {
  String v = storage.get(key);
  return storage.typed && v != null ? convertFromString(v) : v;
}

代码示例来源:origin: org.apache.karaf.jaas/org.apache.karaf.jaas.modules

public void createGroup(String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  } else {
    throw new IllegalArgumentException("Group: " + group + " already exist");
  }
}

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

public Map<GroupPrincipal, String> listGroups() {
  Map<GroupPrincipal, String> result = new HashMap<>();
  for (String name : users.keySet()) {
    if (name.startsWith(GROUP_PREFIX)) {
      result.put(new GroupPrincipal(name.substring(GROUP_PREFIX.length())), users.get(name));
    }
  }
  return result;
}

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

public Map<GroupPrincipal, String> listGroups() {
  Map<GroupPrincipal, String> result = new HashMap<>();
  for (String name : users.keySet()) {
    if (name.startsWith(GROUP_PREFIX)) {
      result.put(new GroupPrincipal(name.substring(GROUP_PREFIX.length())), users.get(name));
    }
  }
  return result;
}

代码示例来源:origin: org.apache.karaf.jaas/org.apache.karaf.jaas.modules

public Map<GroupPrincipal, String> listGroups() {
  Map<GroupPrincipal, String> result = new HashMap<>();
  for (String name : users.keySet()) {
    if (name.startsWith(GROUP_PREFIX)) {
      result.put(new GroupPrincipal(name.substring(GROUP_PREFIX.length())), users.get(name));
    }
  }
  return result;
}

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

private static void trimValues(Properties configProps) {
  for (String key : configProps.keySet()) {
    configProps.put(key, configProps.get(key).trim());
  }
}

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

@Override
public void addGroup(String username, String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  }
  addRole(username, groupName);
}

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

@Override
public void addGroup(String username, String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  }
  addRole(username, groupName);
}

代码示例来源:origin: org.apache.karaf.jaas/org.apache.karaf.jaas.modules

@Override
public void addGroup(String username, String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  }
  addRole(username, groupName);
}

代码示例来源:origin: org.apache.karaf.jaas/org.apache.karaf.jaas.modules

@Override
public void addGroup(String username, String group) {
  String groupName = GROUP_PREFIX + group;
  if (users.get(groupName) == null) {
    addUserInternal(groupName, "group");
  }
  addRole(username, groupName);
}

相关文章