org.apache.webbeans.inject
Class InjectableField

java.lang.Object
  extended by org.apache.webbeans.inject.AbstractInjectable
      extended by org.apache.webbeans.inject.InjectableField
All Implemented Interfaces:
Injectable

public class InjectableField
extends AbstractInjectable

Field type injection.

Since:
1.0
Author:
Gurkan Erdogdu

Field Summary
protected  Field field
           
protected  Object instance
           
 
Fields inherited from class org.apache.webbeans.inject.AbstractInjectable
dependentInstanceOfProducerMethods, injectionMember, injectionOwnerBean, injectionOwnerCreationalContext, instanceUnderInjection
 
Constructor Summary
InjectableField(Field field, Object instance, AbstractOwbBean<?> owner, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
           
 
Method Summary
 Object doInjection()
          Responsible for injecting the owner required injected component instances.
 
Methods inherited from class org.apache.webbeans.inject.AbstractInjectable
getInjectedPoints, getInjectionOwnerComponent, inject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected Field field

instance

protected Object instance
Constructor Detail

InjectableField

public InjectableField(Field field,
                       Object instance,
                       AbstractOwbBean<?> owner,
                       javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Method Detail

doInjection

public Object doInjection()
Description copied from interface: Injectable
Responsible for injecting the owner required injected component instances. Maybe returning an component instance, for example, InjectableConstructor.doInjection() returns a new web bean component instance.

Each injetable elements parameters, web beans component instances, are resolved using the resolution type algorithm.

Returns:
if the return instance if available


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.