com.sun.hk2.component
Interface InjectionResolverQuery

All Known Implementing Classes:
InjectInjectionResolver, InjectionResolver

public interface InjectionResolverQuery


Method Summary
<V> V
getValue(java.lang.Object component, Inhabitant<?> onBehalfOf, java.lang.reflect.AnnotatedElement annotated, java.lang.reflect.Type genericType, java.lang.Class<V> type)
          Returns the value to inject in the field or method of component annotated with the annotated annotation.
 

Method Detail

getValue

<V> V getValue(java.lang.Object component,
               Inhabitant<?> onBehalfOf,
               java.lang.reflect.AnnotatedElement annotated,
               java.lang.reflect.Type genericType,
               java.lang.Class<V> type)
           throws ComponentException
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:
ComponentException - if the resource cannot be located.


Copyright © 2011 Oracle Corporation. All Rights Reserved.