com.google.inject.grapher.graphviz
Class DependencyEdgeFactory
java.lang.Object
com.google.inject.grapher.graphviz.DependencyEdgeFactory
- All Implemented Interfaces:
- DependencyEdge.Factory<String,DependencyEdge<String>>
public class DependencyEdgeFactory
- extends Object
- implements DependencyEdge.Factory<String,DependencyEdge<String>>
Graphviz-specific implementation of DependencyEdge.Factory
. Uses a
DependencyEdgeFactory.GraphvizEdgeAdaptor
to delegate to a GraphvizEdge
.
- Author:
- phopkins@gmail.com (Pete Hopkins)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyEdgeFactory
@Inject
public DependencyEdgeFactory(GraphvizRenderer renderer,
PortIdFactory portIdFactory)
newDependencyEdge
public DependencyEdge<String> newDependencyEdge(String fromId,
InjectionPoint fromPoint,
String toId)
- Description copied from interface:
DependencyEdge.Factory
- Creates a new
DependencyEdge
and adds it to the graph.
- Specified by:
newDependencyEdge
in interface DependencyEdge.Factory<String,DependencyEdge<String>>
- Parameters:
fromId
- The ID for the class or instance node that has the
dependency.fromPoint
- The point where the dependency will be
@Inject
ed.toId
- The ID for the interface node that satisfies the dependency.
newAdaptor
protected DependencyEdgeFactory.GraphvizEdgeAdaptor newAdaptor(GraphvizEdge edge)
Copyright © 2006-2011 Google, Inc.. All Rights Reserved.