com.google.inject.grapher.graphviz
Class DependencyEdgeFactory

java.lang.Object
  extended by 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)

Nested Class Summary
protected  class DependencyEdgeFactory.GraphvizEdgeAdaptor
          Adaptor class that converts DependencyEdge methods to display operations on a GraphvizEdge.
 
Constructor Summary
DependencyEdgeFactory(GraphvizRenderer renderer, PortIdFactory portIdFactory)
           
 
Method Summary
protected  DependencyEdgeFactory.GraphvizEdgeAdaptor newAdaptor(GraphvizEdge edge)
           
 DependencyEdge<String> newDependencyEdge(String fromId, InjectionPoint fromPoint, String toId)
          Creates a new DependencyEdge and adds it to the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyEdgeFactory

@Inject
public DependencyEdgeFactory(GraphvizRenderer renderer,
                                    PortIdFactory portIdFactory)
Method Detail

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 @Injected.
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.