org.apache.webbeans.inject
Class InjectableConstructor<T>
java.lang.Object
org.apache.webbeans.inject.AbstractInjectable
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
|
Method Summary |
T |
doInjection()
Creates the instance from the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
con
protected Constructor<T> con
- Injectable constructor instance
InjectableConstructor
public InjectableConstructor(Constructor<T> cons,
AbstractOwbBean<?> owner,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
- Sets the constructor.
- Parameters:
cons - injectable constructor
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.