Package com.google.inject.grapher
Class ProviderAliasCreator
java.lang.Object
com.google.inject.grapher.ProviderAliasCreator
- All Implemented Interfaces:
AliasCreator
Alias creator that creates an alias for each
ProviderBinding
. These Binding
s
arise from an InjectionPoint
for the Provider
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateAliases
(Iterable<Binding<?>> bindings) Returns aliases for the given dependency graph.
-
Constructor Details
-
ProviderAliasCreator
ProviderAliasCreator()
-
-
Method Details
-
createAliases
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
-