com.sun.hk2.component
Class InjectInjectionResolver

java.lang.Object
  extended by com.sun.hk2.component.InjectionResolver<javax.inject.Inject>
      extended by com.sun.hk2.component.InjectInjectionResolver
All Implemented Interfaces:
InjectionResolverQuery

Deprecated.

@Deprecated
public class InjectInjectionResolver
extends InjectionResolver<javax.inject.Inject>

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
<V> Collection<V>
getAllByContract(Inhabitant<?> onBehalfOf, ServiceLocator habitat, Class<V> ct)
          Deprecated.  
protected
<V> Collection<V>
getAllByType(Inhabitant<?> onBehalfOf, ServiceLocator habitat, Class<V> ct)
          Deprecated.  
protected
<V> V
getArrayInjectValue(ServiceLocator habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type)
          Deprecated.  
protected
<V> V
getHolderInjectValue(ServiceLocator habitat, Object component, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, Class<V> type, javax.inject.Inject inject)
          Deprecated.  
protected
<V> Provider<V>
getProviderByContract(ServiceLocator habitat, Inhabitant<?> onBehalfOf, AnnotatedElement target, Type genericType, javax.inject.Inject inject)
          Deprecated.  
<V> V
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
<V> Collection<V>
manage(Inhabitant<?> onBehalfOf, Iterable<?> inhabitants)
          Deprecated.  
protected
<V> V
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

InjectInjectionResolver

public InjectInjectionResolver(ServiceLocator habitat)
Deprecated. 
Method Detail

isOptional

public boolean isOptional(AnnotatedElement element,
                          javax.inject.Inject annotation)
Deprecated. 
Description copied from class: InjectionResolver
Returns true if the resolution of this injection identified by the passed annotation instance is optional

Overrides:
isOptional in class InjectionResolver<javax.inject.Inject>
Parameters:
element - is the annotated java element Method or Field
annotation - the injection metadata
Returns:
true if the getValue() can return null without generating a faulty injection operation

getValue

public <V> V getValue(Object component,
                      Inhabitant<?> onBehalfOf,
                      AnnotatedElement target,
                      Type genericType,
                      Class<V> type)
           throws ComponentException
Deprecated. 
Obtains the value to inject, based on the type and org.jvnet.hk2.annotations.Inject annotation.

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.

getArrayInjectValue

protected <V> V getArrayInjectValue(ServiceLocator habitat,
                                    Object component,
                                    Inhabitant<?> onBehalfOf,
                                    AnnotatedElement target,
                                    Type genericType,
                                    Class<V> type)
Deprecated. 

getHolderInjectValue

protected <V> V getHolderInjectValue(ServiceLocator habitat,
                                     Object component,
                                     Inhabitant<?> onBehalfOf,
                                     AnnotatedElement target,
                                     Type genericType,
                                     Class<V> type,
                                     javax.inject.Inject inject)
                          throws ComponentException
Deprecated. 
Throws:
ComponentException

getProviderByContract

protected <V> Provider<V> getProviderByContract(ServiceLocator habitat,
                                                Inhabitant<?> onBehalfOf,
                                                AnnotatedElement target,
                                                Type genericType,
                                                javax.inject.Inject inject)
                                     throws ComponentException
Deprecated. 
Throws:
ComponentException

validate

protected <V> V validate(Object component,
                         Inhabitant<?> onBehalfOf,
                         V toBeInjected)
Deprecated. 
Verifies the injection does not violate any integrity rules.

Parameters:
component - the target component to be injected
toBeInjected - the injected value

manage

protected Inhabitant<?> manage(Inhabitant<?> onBehalfOf,
                               Inhabitant<?> inhabitant)
Deprecated. 

manage

protected <V> Collection<V> manage(Inhabitant<?> onBehalfOf,
                                   Iterable<?> inhabitants)
Deprecated. 

getAllByType

protected <V> Collection<V> getAllByType(Inhabitant<?> onBehalfOf,
                                         ServiceLocator habitat,
                                         Class<V> ct)
Deprecated. 

getAllByContract

protected <V> Collection<V> getAllByContract(Inhabitant<?> onBehalfOf,
                                             ServiceLocator habitat,
                                             Class<V> ct)
Deprecated. 


Copyright © 2013 Oracle Corporation. All Rights Reserved.