Class ProviderAliasCreator

  • All Implemented Interfaces:
    AliasCreator

    final class ProviderAliasCreator
    extends java.lang.Object
    implements AliasCreator
    Alias creator that creates an alias for each ProviderBinding. These Bindings 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProviderAliasCreator

        ProviderAliasCreator()
    • 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 interface AliasCreator
        Parameters:
        bindings - bindings that make up the dependency graph
        Returns:
        aliases that should be applied on the graph