Class ProviderAliasCreator

java.lang.Object
com.google.inject.grapher.ProviderAliasCreator
All Implemented Interfaces:
AliasCreator

final class ProviderAliasCreator extends Object implements AliasCreator
Alias creator that creates an alias for each ProviderBinding. These Bindings arise from an
invalid reference
InjectionPoint
for the
invalid reference
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 Details

    • ProviderAliasCreator

      ProviderAliasCreator()
  • Method Details

    • createAliases

      public Iterable<Alias> createAliases(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 interface AliasCreator
      Parameters:
      bindings - bindings that make up the dependency graph
      Returns:
      aliases that should be applied on the graph