com.sun.hk2.component
Class LeadInjectionResolver

java.lang.Object
  extended by com.sun.hk2.component.InjectionResolver<Lead>
      extended by com.sun.hk2.component.LeadInjectionResolver

Deprecated. this is scheduled for removal

public class LeadInjectionResolver
extends InjectionResolver<Lead>

Injection Resolver responsible for Lead Annotation type.


Field Summary
 
Fields inherited from class com.sun.hk2.component.InjectionResolver
type
 
Constructor Summary
LeadInjectionResolver(Habitat habitat)
          Deprecated.  
 
Method Summary
<V> V
getValue(java.lang.Object component, Inhabitant<?> onBehalfOf, java.lang.reflect.AnnotatedElement target, java.lang.reflect.Type genericType, java.lang.Class<V> type)
          Deprecated. Returns the value to inject in the field or method of component annotated with the annotated annotation.
 
Methods inherited from class com.sun.hk2.component.InjectionResolver
getSetterMethod, isOptional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeadInjectionResolver

public LeadInjectionResolver(Habitat habitat)
Deprecated. 
Method Detail

getValue

public <V> V getValue(java.lang.Object component,
                      Inhabitant<?> onBehalfOf,
                      java.lang.reflect.AnnotatedElement target,
                      java.lang.reflect.Type genericType,
                      java.lang.Class<V> type)
           throws ComponentException
Deprecated. 
Description copied from class: InjectionResolver
Returns the value to inject in the field or method of component annotated with the annotated annotation. // * @param habitat the habitat containing component / inhabitant

Specified by:
getValue in class InjectionResolver<Lead>
Parameters:
component - injection target instance
onBehalfOf - inhabitant doing the injection for
target - 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.