Class ContextualInput<T>

java.lang.Object
org.glassfish.hk2.utilities.ContextualInput<T>

public class ContextualInput<T> extends Object
Used by several contexts for keeping the inputs of Context.findOrCreate(ActiveDescriptor, ServiceHandle). May be used as the key in a HashMap, where the criteria for equality is the equality of the Descriptor
  • Field Details

  • Constructor Details

  • Method Details

    • getDescriptor

      public ActiveDescriptor<T> getDescriptor()
      Returns the descriptor associated with this contextual creation
      Returns:
      The non-null descriptor associated with this creation
    • getRoot

      public ServiceHandle<?> getRoot()
      Returns the ServiceHandle root associated with this contextual creation
      Returns:
      The possibly null root associated with this creation
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object