本文整理了Java中org.wildfly.swarm.cli.YamlDumper
类的一些代码示例,展示了YamlDumper
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlDumper
类的具体详情如下:
包路径:org.wildfly.swarm.cli.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);
}
内容来源于网络,如有侵权,请联系作者删除!