org.apache.karaf.features.Feature.getConfigurations()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(125)

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

Feature.getConfigurations介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.controller/config-persister-feature-adapter

/**
 * @return
 * @see org.apache.karaf.features.Feature#getConfigurations()
 */
@Override
public List<ConfigInfo> getConfigurations() {
  return feature.getConfigurations();
}

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

@Override
public List<ConfigInfo> getConfigurations() {
  return this.feature.getConfigurations();
}

代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command

private void displayConfigInformation(Feature feature, String contentType) {
  List<ConfigInfo> configurations = feature.getConfigurations();
  if (configurations.isEmpty()) {
    System.out.println(contentType + " has no configuration");
  } else {
    System.out.println(contentType + " configuration:");
    for (ConfigInfo configInfo : configurations) {
      System.out.println(INDENT + configInfo.getName());
    }
  }
}

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

private void displayConfigInformation(Feature feature, String contentType) {
  List<ConfigInfo> configurations = feature.getConfigurations();
  if (configurations.isEmpty()) {
    System.out.println(contentType + " has no configuration");
  } else {
    System.out.println(contentType + " configuration:");
    for (ConfigInfo configInfo : configurations) {
      System.out.println(INDENT + configInfo.getName());
    }
  }
}

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

public JmxFeature(Feature feature, boolean installed, boolean required) {
  try {
    String[] itemNames = FeaturesServiceMBean.FEATURE;
    Object[] itemValues = new Object[itemNames.length];
    itemValues[0] = feature.getName();
    itemValues[1] = feature.getVersion();
    itemValues[2] = getDependencyIdentifierTable(feature.getDependencies());
    itemValues[3] = getBundleUris(feature.getBundles());
    itemValues[4] = getConfigList(feature.getConfigurations());
    itemValues[5] = getConfigFileList(feature.getConfigurationFiles());
    itemValues[6] = installed;
    itemValues[7] = feature.isBlacklisted();
    itemValues[8] = required;
    data = new CompositeDataSupport(FEATURE, itemNames, itemValues);
  } catch (OpenDataException e) {
    throw new IllegalStateException("Cannot form feature open data", e);
  }
}

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

public void installFeatureConfigs(Feature feature) throws IOException, InvalidSyntaxException {
  for (ConfigInfo config : feature.getConfigurations()) {
    TypedProperties props = new TypedProperties();

相关文章