Class DependencyAndSource


  • @Deprecated
    public final class DependencyAndSource
    extends java.lang.Object
    Deprecated.
    The only use of this object is for ProvisionListener.ProvisionInvocation.getDependencyChain() which is also deprecated. This object will also be removed in Guice 4.4.
    A combination of a Dependency and the source where the dependency was bound.
    Since:
    4.0
    Author:
    sameb@google.com (Sam Berlin)
    • Constructor Detail

      • DependencyAndSource

        public DependencyAndSource​(Dependency<?> dependency,
                                   java.lang.Object source)
        Deprecated.
    • Method Detail

      • getBindingSource

        public java.lang.String getBindingSource()
        Deprecated.
        Returns a string describing where this dependency was bound. If the binding was just-in-time, there is no valid binding source, so this describes the class in question.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object