public interface

AliasCreator

com.google.inject.grapher.AliasCreator

Class Overview

Creator of node aliases. Used by dependency graphers to merge nodes in the internal Guice graph into a single node on the rendered graph.

Summary

Public Methods
abstract Iterable<Alias> createAliases(Iterable<Binding<?>> bindings)
Returns aliases for the given dependency graph.

Public Methods

public abstract 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