com.sun.hk2.component
Class LeadInjectionResolver
java.lang.Object
com.sun.hk2.component.InjectionResolver<Lead>
com.sun.hk2.component.LeadInjectionResolver
Deprecated. this is scheduled for removal
public class LeadInjectionResolver
- extends InjectionResolver<Lead>
Injection Resolver responsible for Lead Annotation type.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeadInjectionResolver
public LeadInjectionResolver(Habitat habitat)
- Deprecated.
getValue
public <V> V getValue(Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
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 instanceonBehalfOf - inhabitant doing the injection fortarget - is the annotated java element Method
or FieldgenericType - the generic type of the expected returntype - 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.