Package com.google.inject.grapher
Class ProviderAliasCreator
- java.lang.Object
-
- com.google.inject.grapher.ProviderAliasCreator
-
- All Implemented Interfaces:
AliasCreator
final class ProviderAliasCreator extends java.lang.Object implements AliasCreator
Alias creator that creates an alias for eachProviderBinding
. TheseBinding
s arise from anInjectionPoint
for theProvider
interface. Since this isn't very interesting information, we don't render this binding on the graph, and just alias the two nodes.
-
-
Constructor Summary
Constructors Constructor Description ProviderAliasCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<Alias>
createAliases(java.lang.Iterable<Binding<?>> bindings)
Returns aliases for the given dependency graph.
-
-
-
Method Detail
-
createAliases
public java.lang.Iterable<Alias> createAliases(java.lang.Iterable<Binding<?>> bindings)
Description copied from interface:AliasCreator
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).- Specified by:
createAliases
in interfaceAliasCreator
- Parameters:
bindings
- bindings that make up the dependency graph- Returns:
- aliases that should be applied on the graph
-
-