Interface AliasCreator

All Known Implementing Classes:
ProviderAliasCreator

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

    Modifier and Type
    Method
    Description
    Returns aliases for the given dependency graph.
  • Method Details

    • 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