com.google.inject.grapher.graphviz
Class ImplementationNodeFactory.GraphvizNodeAdaptor

java.lang.Object
  extended by com.google.inject.grapher.graphviz.ImplementationNodeFactory.GraphvizNodeAdaptor
All Implemented Interfaces:
ImplementationNode<String>
Enclosing class:
ImplementationNodeFactory

protected class ImplementationNodeFactory.GraphvizNodeAdaptor
extends Object
implements ImplementationNode<String>

Adaptor class that converts ImplementationNode methods to display operations on a GraphvizNode.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.inject.grapher.ImplementationNode
ImplementationNode.Factory<K,T extends ImplementationNode<K>>
 
Field Summary
protected  GraphvizNode node
           
 
Constructor Summary
ImplementationNodeFactory.GraphvizNodeAdaptor(GraphvizNode node)
           
 
Method Summary
 void addMember(Member member)
           
 void setClassKey(Key<?> key)
          Sets the Key that this node is for.
 void setInstance(Object instance)
          Sets the Object that's the already-created instance.
 void setSource(Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected final GraphvizNode node
Constructor Detail

ImplementationNodeFactory.GraphvizNodeAdaptor

public ImplementationNodeFactory.GraphvizNodeAdaptor(GraphvizNode node)
Method Detail

setClassKey

public void setClassKey(Key<?> key)
Description copied from interface: ImplementationNode
Sets the Key that this node is for. Used when the node is representing a class that Guice will instantiate.

Specified by:
setClassKey in interface ImplementationNode<String>

setInstance

public void setInstance(Object instance)
Description copied from interface: ImplementationNode
Sets the Object that's the already-created instance. Used when this node is represeting the instance instead of a class.

Specified by:
setInstance in interface ImplementationNode<String>

setSource

public void setSource(Object source)
Specified by:
setSource in interface ImplementationNode<String>

addMember

public void addMember(Member member)
Specified by:
addMember in interface ImplementationNode<String>


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