Java Code Examples for com.google.inject.grapher.graphviz.GraphvizGrapher#graph()
The following examples show how to use
com.google.inject.grapher.graphviz.GraphvizGrapher#graph() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PluginManagerTest.java From runelite with BSD 2-Clause "Simplified" License | 6 votes |
@Test public void dumpGraph() throws Exception { List<Module> modules = new ArrayList<>(); modules.add(new GraphvizModule()); modules.add(new RuneLiteModule(mock(OkHttpClient.class), () -> null, true, false, RuneLite.DEFAULT_SESSION_FILE, RuneLite.DEFAULT_CONFIG_FILE)); PluginManager pluginManager = new PluginManager(true, false, null, null, null, null, null); pluginManager.loadCorePlugins(); modules.addAll(pluginManager.getPlugins()); File file = folder.newFile(); try (PrintWriter out = new PrintWriter(file, "UTF-8")) { Injector injector = Guice.createInjector(modules); GraphvizGrapher grapher = injector.getInstance(GraphvizGrapher.class); grapher.setOut(out); grapher.setRankdir("TB"); grapher.graph(injector); } }
Example 2
Source File: Grapher.java From ProjectAres with GNU Affero General Public License v3.0 | 5 votes |
public void writeGraph(File file, Injector injector) throws IOException { final PrintWriter out = new PrintWriter(file, Charsets.UTF_8.name()); final GraphvizGrapher grapher = Guice.createInjector(new GraphvizModule()).getInstance(GraphvizGrapher.class); grapher.setOut(out); grapher.setRankdir("TB"); grapher.graph(injector); }
Example 3
Source File: DependencyGraph.java From pinpoint with Apache License 2.0 | 5 votes |
public void graph(String filename, Injector demoInjector) throws IOException { PrintWriter out = new PrintWriter(new File(filename), Charsets.UTF_8.name()); Injector injector = Guice.createInjector(new GraphvizModule()); GraphvizGrapher grapher = injector.getInstance(GraphvizGrapher.class); grapher.setOut(out); grapher.setRankdir("TB"); grapher.graph(demoInjector); }
Example 4
Source File: Grapher.java From pinpoint with Apache License 2.0 | 5 votes |
public void graph(String filename, Injector demoInjector) throws IOException { PrintWriter out = new PrintWriter(new File(filename), Charsets.UTF_8_NAME); Injector injector = Guice.createInjector(new GraphvizModule()); GraphvizGrapher grapher = injector.getInstance(GraphvizGrapher.class); grapher.setOut(out); grapher.setRankdir("TB"); grapher.graph(demoInjector); }