|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.hk2.component.InjectionResolver<javax.inject.Inject>
com.sun.hk2.component.InjectInjectionResolver
@Deprecated public class InjectInjectionResolver
InjectInjectionResolver, handles all Inject annotations
Field Summary |
---|
Fields inherited from class com.sun.hk2.component.InjectionResolver |
---|
type |
Constructor Summary | |
---|---|
InjectInjectionResolver(ServiceLocator habitat)
Deprecated. |
Method Summary | ||
---|---|---|
protected
|
getAllByContract(Inhabitant<?> onBehalfOf,
ServiceLocator habitat,
Class<V> ct)
Deprecated. |
|
protected
|
getAllByType(Inhabitant<?> onBehalfOf,
ServiceLocator habitat,
Class<V> ct)
Deprecated. |
|
protected
|
getArrayInjectValue(ServiceLocator habitat,
Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
Class<V> type)
Deprecated. |
|
protected
|
getHolderInjectValue(ServiceLocator habitat,
Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
Class<V> type,
javax.inject.Inject inject)
Deprecated. |
|
protected
|
getProviderByContract(ServiceLocator habitat,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
javax.inject.Inject inject)
Deprecated. |
|
|
getValue(Object component,
Inhabitant<?> onBehalfOf,
AnnotatedElement target,
Type genericType,
Class<V> type)
Deprecated. Obtains the value to inject, based on the type and org.jvnet.hk2.annotations.Inject annotation. |
|
boolean |
isOptional(AnnotatedElement element,
javax.inject.Inject annotation)
Deprecated. Returns true if the resolution of this injection identified by the passed annotation instance is optional |
|
protected Inhabitant<?> |
manage(Inhabitant<?> onBehalfOf,
Inhabitant<?> inhabitant)
Deprecated. |
|
protected
|
manage(Inhabitant<?> onBehalfOf,
Iterable<?> inhabitants)
Deprecated. |
|
protected
|
validate(Object component,
Inhabitant<?> onBehalfOf,
V toBeInjected)
Deprecated. Verifies the injection does not violate any integrity rules. |
Methods inherited from class com.sun.hk2.component.InjectionResolver |
---|
getSetterMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InjectInjectionResolver(ServiceLocator habitat)
Method Detail |
---|
public boolean isOptional(AnnotatedElement element, javax.inject.Inject annotation)
InjectionResolver
isOptional
in class InjectionResolver<javax.inject.Inject>
element
- is the annotated java element Method
or Field
annotation
- the injection metadata
getValue()
can return null without generating a
faulty injection operationpublic <V> V getValue(Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type) throws ComponentException
org.jvnet.hk2.annotations.Inject
annotation.
component
- injection target instanceonBehalfOf
- inhabitant doing the injection fortarget
- is the annotated java element Method
or Field
genericType
- the generic type of the expected returntype
- type of the expected return
ComponentException
- if the resource cannot be located.protected <V> V getArrayInjectValue(ServiceLocator habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type)
protected <V> V getHolderInjectValue(ServiceLocator habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type, javax.inject.Inject inject) throws ComponentException
ComponentException
protected <V> Provider<V> getProviderByContract(ServiceLocator habitat, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, javax.inject.Inject inject) throws ComponentException
ComponentException
protected <V> V validate(Object component, Inhabitant<?> onBehalfOf, V toBeInjected)
component
- the target component to be injectedtoBeInjected
- the injected valueprotected Inhabitant<?> manage(Inhabitant<?> onBehalfOf, Inhabitant<?> inhabitant)
protected <V> Collection<V> manage(Inhabitant<?> onBehalfOf, Iterable<?> inhabitants)
protected <V> Collection<V> getAllByType(Inhabitant<?> onBehalfOf, ServiceLocator habitat, Class<V> ct)
protected <V> Collection<V> getAllByContract(Inhabitant<?> onBehalfOf, ServiceLocator habitat, Class<V> ct)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |