org.apache.webbeans.inject.instance
Class InstanceFactory

java.lang.Object
  extended by org.apache.webbeans.inject.instance.InstanceFactory

public final class InstanceFactory
extends Object


Method Summary
static
<T> javax.enterprise.inject.Instance<T>
getInstance(Type injectedType, Class<?> injectionPointClass, WebBeansContext webBeansContext, javax.enterprise.context.spi.CreationalContext<?> creationalContext, Object ownerInstance, Annotation... annotations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <T> javax.enterprise.inject.Instance<T> getInstance(Type injectedType,
                                                                  Class<?> injectionPointClass,
                                                                  WebBeansContext webBeansContext,
                                                                  javax.enterprise.context.spi.CreationalContext<?> creationalContext,
                                                                  Object ownerInstance,
                                                                  Annotation... annotations)
Parameters:
injectedType - injection class type
injectionPointClass - null or the class of the injection point
webBeansContext -
creationalContext - will get used for creating @Dependent beans
ownerInstance - the object the current Instance got injected into
annotations - qualifier annotations
Returns:
the Instance for the given type.


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