com.google.inject.grapher
Interface DependencyEdge.Factory<K,T extends DependencyEdge<K>>
- Type Parameters:
K
- The type for node IDs.T
- The DependencyEdge
sub-type that this factory provides.
- All Known Implementing Classes:
- DependencyEdgeFactory
- Enclosing interface:
- DependencyEdge<K>
public static interface DependencyEdge.Factory<K,T extends DependencyEdge<K>>
Factory interface for DependencyEdge
s. Renderer implementations
will need to provide an implementation for this.
newDependencyEdge
T newDependencyEdge(K fromId,
@Nullable
InjectionPoint fromPoint,
K toId)
- Creates a new
DependencyEdge
and adds it to the graph.
- 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.
Copyright © 2006-2011 Google, Inc.. All Rights Reserved.