org.apache.webbeans.inject.xml
Class XMLInjectableConstructor<T>

java.lang.Object
  extended by org.apache.webbeans.inject.AbstractInjectable
      extended by org.apache.webbeans.inject.InjectableConstructor<T>
          extended by org.apache.webbeans.inject.xml.XMLInjectableConstructor<T>
Type Parameters:
T - type of the constructor
All Implemented Interfaces:
Injectable

public class XMLInjectableConstructor<T>
extends InjectableConstructor<T>

Defines the injectable constructor.


Field Summary
 
Fields inherited from class org.apache.webbeans.inject.InjectableConstructor
con
 
Fields inherited from class org.apache.webbeans.inject.AbstractInjectable
dependentInstanceOfProducerMethods, injectionMember, injectionOwnerBean, injectionOwnerCreationalContext, instanceUnderInjection
 
Constructor Summary
XMLInjectableConstructor(Constructor<T> constructor, AbstractOwbBean<?> owner, CreationalContext<?> creationalContext)
          Defines new XMLInjectableConstructor instance.
 
Method Summary
 void addInjectionPointModel(XMLInjectionPointModel model)
          Adds new constructor parameter injection model.
 T doInjection()
          Creates the instance from the constructor.
 Constructor<T> getConstructor()
           
 
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
 

Constructor Detail

XMLInjectableConstructor

public XMLInjectableConstructor(Constructor<T> constructor,
                                AbstractOwbBean<?> owner,
                                CreationalContext<?> creationalContext)
Defines new XMLInjectableConstructor instance.

Parameters:
constructor - bean constructor
owner - constructor owner beans
Method Detail

doInjection

public T doInjection()
Description copied from class: InjectableConstructor
Creates the instance from the constructor. Each constructor parameter instance is resolved using the resolution algorithm.

Specified by:
doInjection in interface Injectable
Overrides:
doInjection in class InjectableConstructor<T>
Returns:
if the return instance if available

getConstructor

public Constructor<T> getConstructor()
Returns:
the constructor

addInjectionPointModel

public void addInjectionPointModel(XMLInjectionPointModel model)
Adds new constructor parameter injection model.

Parameters:
model - new injection point model for constructor parameter


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