org.apache.webbeans.inject
Class OWBInjector

java.lang.Object
  extended by org.apache.webbeans.inject.OWBInjector
All Implemented Interfaces:
Serializable

public final class OWBInjector
extends Object
implements Serializable

Injects dependencies of the given Java EE component instance.

Version:
$Rev$ $Date$
See Also:
Serialized Form

Constructor Summary
OWBInjector()
           
OWBInjector(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(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 © 2008-2012 The Apache Software Foundation. All Rights Reserved.