Class DependencyAndSource


  • public final class DependencyAndSource
    extends java.lang.Object
    A combination of a Dependency and the source where the dependency was bound.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBindingSource()
      Returns a string describing where this dependency was bound.
      Dependency<?> getDependency()
      Returns the Dependency, if one exists.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DependencyAndSource

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

      • getBindingSource

        public java.lang.String getBindingSource()
        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()
        Overrides:
        toString in class java.lang.Object