org.apache.openejb.cdi
Class OWBInjector

java.lang.Object
  extended by org.apache.openejb.cdi.OWBInjector

public final class OWBInjector
extends Object

Version:
$Rev$ $Date$

Constructor Summary
OWBInjector()
           
OWBInjector(org.apache.webbeans.config.WebBeansContext webBeansContext)
          Creates a new instance
 
Method Summary
 void destroy()
          Release dependents.
 OWBInjector inject(Object javaEeComponentInstance)
          Inject dependencies of given instance.
 OWBInjector inject(Object javaEeComponentInstance, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Inject dependencies of given instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWBInjector

public OWBInjector()

OWBInjector

public OWBInjector(org.apache.webbeans.config.WebBeansContext webBeansContext)
Creates a new instance

Parameters:
webBeansContext -
Method Detail

inject

public OWBInjector inject(Object javaEeComponentInstance)
                   throws Exception
Inject dependencies of given instance.

Parameters:
javaEeComponentInstance - instance
Returns:
this injector
Throws:
Exception - if exception occurs

inject

public OWBInjector inject(Object javaEeComponentInstance,
                          javax.enterprise.context.spi.CreationalContext<?> creationalContext)
                   throws Exception
Inject dependencies of given instance.

Parameters:
javaEeComponentInstance - instance
creationalContext - context
Returns:
this injector
Throws:
Exception - if exception occurs

destroy

public void destroy()
Release dependents.



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