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

java.lang.Object
  extended by org.apache.webbeans.inject.AbstractInjectable<T>
      extended by org.apache.webbeans.inject.InjectableConstructor<T>

public class InjectableConstructor<T>
extends AbstractInjectable<T>

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
creationalContext
 
Constructor Summary
InjectableConstructor(Constructor<T> cons, InjectionTarget<T> owner, CreationalContextImpl<T> creationalContext)
          Sets the constructor.
 
Method Summary
 Object[] createParameters()
           
 T doInjection()
          Creates the instance from the constructor.
 T getInstance()
           
 
Methods inherited from class org.apache.webbeans.inject.AbstractInjectable
createInjectionPoints, getBean, getInjectionPoints, getWebBeansContext, 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,
                             InjectionTarget<T> owner,
                             CreationalContextImpl<T> 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.


getInstance

public T getInstance()

createParameters

public Object[] createParameters()


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.