org.apache.webbeans.inject
Class InjectableConstructor<T>

java.lang.Object
  extended by org.apache.webbeans.inject.AbstractInjectable
      extended by org.apache.webbeans.inject.InjectableConstructor<T>
All Implemented Interfaces:
Injectable

public class InjectableConstructor<T>
extends AbstractInjectable

Injects the parameters of the ManagedBean constructor and returns the created instance.

Since:
1.0
Author:
Gurkan Erdogdu
See Also:
AbstractInjectable

Field Summary
protected  Constructor<T> con
          Injectable constructor instance
 
Fields inherited from class org.apache.webbeans.inject.AbstractInjectable
dependentInstanceOfProducerMethods, injectionMember, injectionOwnerBean, injectionOwnerCreationalContext, instanceUnderInjection
 
Constructor Summary
InjectableConstructor(Constructor<T> cons, AbstractOwbBean<?> owner, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Sets the constructor.
 
Method Summary
 T doInjection()
          Creates the instance from the constructor.
 
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

con

protected Constructor<T> con
Injectable constructor instance

Constructor Detail

InjectableConstructor

public InjectableConstructor(Constructor<T> cons,
                             AbstractOwbBean<?> owner,
                             javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Sets the constructor.

Parameters:
cons - injectable constructor
Method Detail

doInjection

public T doInjection()
Creates the instance from the constructor. Each constructor parameter instance is resolved using the resolution algorithm.

Returns:
if the return instance if available


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