java.lang.Object
org.glassfish.hk2.utilities.ContextualInput<T>
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- Author:
- jwells
-
Constructor Summary
ConstructorsConstructorDescriptionContextualInput(ActiveDescriptor<T> descriptor, ServiceHandle<?> root) The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)method -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the descriptor associated with this contextual creationgetRoot()Returns theServiceHandleroot associated with this contextual creationinthashCode()toString()
-
Constructor Details
-
ContextualInput
The inputs from theContext.findOrCreate(ActiveDescriptor, ServiceHandle)method- Parameters:
descriptor- The non-null descriptor associated with a contextual creationroot- The possibly null root associated with a contextual creation
-
-
Method Details
-
getDescriptor
Returns the descriptor associated with this contextual creation- Returns:
- The non-null descriptor associated with this creation
-
getRoot
Returns theServiceHandleroot associated with this contextual creation- Returns:
- The possibly null root associated with this creation
-
hashCode
public int hashCode() -
equals
-
toString
-