gpt4 book ai didi

org.wildfly.swarm.cli.YamlDumper类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 13:13:03 27 4
gpt4 key购买 nike

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

YamlDumper介绍

暂无

代码示例

代码示例来源:origin: thorntail/thorntail

public static void dump(PrintStream out, Properties props) {
  new YamlDumper(out, props).dump();
}

代码示例来源:origin: io.thorntail/container

private void dump() {
  dump(this.root);
}

代码示例来源:origin: org.wildfly.swarm/container

private YamlDumper(PrintStream out, Properties props) {
  this.out = out;
  props.stringPropertyNames().stream()
      .sorted()
      .forEach(key -> {
        integrate(key, props.getProperty(key));
      });
}

代码示例来源:origin: thorntail/thorntail

private void dump() {
  dump(this.root);
}

代码示例来源:origin: thorntail/thorntail

private YamlDumper(PrintStream out, Properties props) {
  this.out = out;
  props.stringPropertyNames().stream()
      .sorted()
      .forEach(key -> {
        integrate(key, props.getProperty(key));
      });
}

代码示例来源:origin: io.thorntail/container

public static void dump(PrintStream out, Properties props) {
  new YamlDumper(out, props).dump();
}

代码示例来源:origin: thorntail/thorntail

private void dump(Node node) {
  dump("", node);
}

代码示例来源:origin: io.thorntail/container

private YamlDumper(PrintStream out, Properties props) {
  this.out = out;
  props.stringPropertyNames().stream()
      .sorted()
      .forEach(key -> {
        integrate(key, props.getProperty(key));
      });
}

代码示例来源:origin: org.wildfly.swarm/container

public static void dump(PrintStream out, Properties props) {
  new YamlDumper(out, props).dump();
}

代码示例来源:origin: org.wildfly.swarm/container

private void dump(Node node) {
  dump("", node);
}

代码示例来源:origin: org.wildfly.swarm/container

private void dump() {
  dump(this.root);
}

代码示例来源:origin: io.thorntail/container

private void dump(Node node) {
  dump("", node);
}

代码示例来源:origin: org.wildfly.swarm/container

private void dump(String indent, Node node) {
  this.out.print(indent);
  this.out.print(node.name());
  this.out.print(":");
  if (node.children().isEmpty()) {
    this.out.print(" <value>");
    this.out.println();
  } else {
    this.out.println();
    for (Node child : node.children) {
      dump(indent + "  ", child);
    }
  }
}

代码示例来源:origin: thorntail/thorntail

private void dump(String indent, Node node) {
  this.out.print(indent);
  this.out.print(node.name());
  this.out.print(":");
  if (node.children().isEmpty()) {
    this.out.print(" <value>");
    this.out.println();
  } else {
    this.out.println();
    for (Node child : node.children) {
      dump(indent + "  ", child);
    }
  }
}

代码示例来源:origin: io.thorntail/container

private void dump(String indent, Node node) {
  this.out.print(indent);
  this.out.print(node.name());
  this.out.print(":");
  if (node.children().isEmpty()) {
    this.out.print(" <value>");
    this.out.println();
  } else {
    this.out.println();
    for (Node child : node.children) {
      dump(indent + "  ", child);
    }
  }
}

代码示例来源:origin: io.thorntail/container

public void dumpYaml(PrintStream out, String fraction) throws IOException, ModuleLoadException {
  ModuleClassLoader cl = Module.getBootModuleLoader().loadModule("thorntail.application").getClassLoader();
  Enumeration<URL> docs = cl.getResources("META-INF/configuration-meta.properties");
  Properties props = new Properties();
  while (docs.hasMoreElements()) {
    URL each = docs.nextElement();
    Properties fractionDocs = new Properties();
    fractionDocs.load(each.openStream());
    if (fraction.equals(ALL) || fraction.equals(fractionDocs.getProperty(FRACTION))) {
      fractionDocs.remove(FRACTION);
      props.putAll(fractionDocs);
    }
  }
  YamlDumper.dump(out, props);
}

代码示例来源:origin: thorntail/thorntail

public void dumpYaml(PrintStream out, String fraction) throws IOException, ModuleLoadException {
  ModuleClassLoader cl = Module.getBootModuleLoader().loadModule("thorntail.application").getClassLoader();
  Enumeration<URL> docs = cl.getResources("META-INF/configuration-meta.properties");
  Properties props = new Properties();
  while (docs.hasMoreElements()) {
    URL each = docs.nextElement();
    Properties fractionDocs = new Properties();
    fractionDocs.load(each.openStream());
    if (fraction.equals(ALL) || fraction.equals(fractionDocs.getProperty(FRACTION))) {
      fractionDocs.remove(FRACTION);
      props.putAll(fractionDocs);
    }
  }
  YamlDumper.dump(out, props);
}

代码示例来源:origin: org.wildfly.swarm/container

public void dumpYaml(PrintStream out, String fraction) throws IOException, ModuleLoadException {
  ModuleClassLoader cl = Module.getBootModuleLoader().loadModule("swarm.application").getClassLoader();
  Enumeration<URL> docs = cl.getResources("META-INF/configuration-meta.properties");
  Properties props = new Properties();
  while (docs.hasMoreElements()) {
    URL each = docs.nextElement();
    Properties fractionDocs = new Properties();
    fractionDocs.load(each.openStream());
    if (fraction.equals(ALL) || fraction.equals(fractionDocs.getProperty(FRACTION))) {
      fractionDocs.remove(FRACTION);
      props.putAll(fractionDocs);
    }
  }
  YamlDumper.dump(out, props);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com