MCPcopy Index your code
hub / github.com/google/dagger / write

Method write

javatests/dagger/functional/spi/TestPlugin.java:58–72  ·  view source on GitHub ↗
(BindingGraph bindingGraph, Properties properties)

Source from the content-addressed store, hash-verified

56 }
57
58 private void write(BindingGraph bindingGraph, Properties properties) {
59 ClassName rootComponentName =
60 ClassName.get(bindingGraph.rootComponentNode().componentPath().currentComponent());
61 try (Writer writer =
62 filer
63 .createResource(
64 CLASS_OUTPUT,
65 rootComponentName.packageName(),
66 Joiner.on('_').join(rootComponentName.simpleNames()) + ".properties")
67 .openWriter()) {
68 properties.store(writer, "");
69 } catch (IOException e) {
70 throw new UncheckedIOException(e);
71 }
72 }
73}

Callers 2

visitGraphMethod · 0.95
processMethod · 0.45

Calls 7

rootComponentNodeMethod · 0.80
packageNameMethod · 0.80
joinMethod · 0.80
getMethod · 0.65
componentPathMethod · 0.65
onMethod · 0.65
currentComponentMethod · 0.45

Tested by

no test coverage detected