com.google.inject.grapher.graphviz
Class BindingEdgeFactory

java.lang.Object
  extended by com.google.inject.grapher.graphviz.BindingEdgeFactory
All Implemented Interfaces:
BindingEdge.Factory<String,BindingEdge<String>>

public class BindingEdgeFactory
extends Object
implements BindingEdge.Factory<String,BindingEdge<String>>

Graphviz-specific implementation of BindingEdge.Factory. Uses a BindingEdgeFactory.GraphvizEdgeAdaptor to delegate to a GraphvizEdge.

Author:
phopkins@gmail.com (Pete Hopkins)

Nested Class Summary
protected  class BindingEdgeFactory.GraphvizEdgeAdaptor
          Adaptor class that converts BindingEdge methods to display operations on a GraphvizEdge.
 
Constructor Summary
BindingEdgeFactory(GraphvizRenderer renderer)
           
 
Method Summary
protected  BindingEdgeFactory.GraphvizEdgeAdaptor newAdaptor(GraphvizEdge edge)
           
 BindingEdge<String> newBindingEdge(String fromId, String toId)
          Creates a new BindingEdge instance 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

BindingEdgeFactory

@Inject
public BindingEdgeFactory(GraphvizRenderer renderer)
Method Detail

newBindingEdge

public BindingEdge<String> newBindingEdge(String fromId,
                                          String toId)
Description copied from interface: BindingEdge.Factory
Creates a new BindingEdge instance and adds it to the graph.

Specified by:
newBindingEdge in interface BindingEdge.Factory<String,BindingEdge<String>>
Parameters:
fromId - Node ID for the interface node.
toId - Node ID for the implementation (class or instance) node.
Returns:
The newly created and added BindingEdge.

newAdaptor

protected BindingEdgeFactory.GraphvizEdgeAdaptor newAdaptor(GraphvizEdge edge)


Copyright © 2006-2011 Google, Inc.. All Rights Reserved.