Interface InjectionResolverQuery

    • Method Detail

      • getValue

        <V> V getValue​(Object component,
                       AnnotatedElement annotated,
                       Type genericType,
                       Class<V> type)
                throws org.glassfish.hk2.api.MultiException
        Returns the value to inject in the field or method of component annotated with the annotated annotation.
        Parameters:
        component - injection target instance
        onBehalfOf - inhabitant doing the injection for
        annotated - is the annotated java element Method or Field
        genericType - the generic type of the expected return
        type - type of the expected return
        Returns:
        the resource to be injected
        Throws:
        org.glassfish.hk2.api.MultiException - if the resource cannot be located.