Package com.google.inject.grapher
Interface AliasCreator
-
public interface AliasCreator
Creator of node aliases. Used by dependency graphers to merge nodes in the internal Guice graph into a single node on the rendered graph.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<Alias>
createAliases(Iterable<Binding<?>> bindings)
Returns aliases for the given dependency graph.
-
-
-
Method Detail
-
createAliases
Iterable<Alias> createAliases(Iterable<Binding<?>> bindings)
Returns aliases for the given dependency graph. The aliases do not need to be transitively resolved, i.e. it is valid to return an alias (X to Y) and an alias (Y to Z). It is the responsibility of the caller to resolve this to (X to Z) and (Y to Z).- Parameters:
bindings
- bindings that make up the dependency graph- Returns:
- aliases that should be applied on the graph
-
-