com.google.gwt.inject.rebind.resolution
Class DependencyGraph

java.lang.Object
  extended by com.google.gwt.inject.rebind.resolution.DependencyGraph

public class DependencyGraph
extends java.lang.Object

A graph of the dependency information between types that need to be injected at a given injector, called the origin.

A DependencyGraph consists of a set of dependencies linking dependency nodes (keys). Each edge explains how a particular node came to be required: for instance, a key may be required in the @Inject constructor of a class, or it might be required by the Ginjector. There are two kinds of dependency nodes:


Nested Class Summary
static class DependencyGraph.Builder
           
static class DependencyGraph.GraphPruner
           
 
Method Summary
 java.lang.Iterable<Key<?>> getAllKeys()
          Returns all the keys that appear in the Dependency Graph, other than the "common root", Dependency.GINJECTOR.
 java.util.Collection<Dependency> getDependenciesOf(Key<?> key)
           
 java.util.Collection<Dependency> getDependenciesTargeting(Key<?> key)
           
 GinjectorBindings getOrigin()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()

getOrigin

public GinjectorBindings getOrigin()

getDependenciesOf

public java.util.Collection<Dependency> getDependenciesOf(Key<?> key)

getDependenciesTargeting

public java.util.Collection<Dependency> getDependenciesTargeting(Key<?> key)

getAllKeys

public java.lang.Iterable<Key<?>> getAllKeys()
Returns all the keys that appear in the Dependency Graph, other than the "common root", Dependency.GINJECTOR.