org.apache.webbeans.component
Class InstanceBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<javax.enterprise.inject.Instance<T>>
      extended by org.apache.webbeans.component.InstanceBean<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<javax.enterprise.inject.Instance<T>>, javax.enterprise.inject.spi.Bean<javax.enterprise.inject.Instance<T>>, OwbBean<javax.enterprise.inject.Instance<T>>

public class InstanceBean<T>
extends AbstractOwbBean<javax.enterprise.inject.Instance<T>>


Field Summary
static ThreadLocal<javax.enterprise.inject.spi.InjectionPoint> local
           
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
InstanceBean(WebBeansContext webBeansContext)
           
 
Method Summary
protected  javax.enterprise.inject.Instance<T> createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.Instance<T>> creationalContext)
          Creates the instance of the bean that has a specific implementation type.
 boolean isPassivationCapable()
          True if passivation capable false otherwise.
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, destroyInstance, equals, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString, validatePassivationDependencies
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

local

public static ThreadLocal<javax.enterprise.inject.spi.InjectionPoint> local
Constructor Detail

InstanceBean

public InstanceBean(WebBeansContext webBeansContext)
Method Detail

createInstance

protected javax.enterprise.inject.Instance<T> createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.Instance<T>> creationalContext)
Description copied from class: AbstractOwbBean
Creates the instance of the bean that has a specific implementation type. Each subclass must define its own create mechanism.

Specified by:
createInstance in class AbstractOwbBean<javax.enterprise.inject.Instance<T>>
Parameters:
creationalContext - the contextual instance shall be created in
Returns:
instance of the bean

isPassivationCapable

public boolean isPassivationCapable()
Description copied from interface: OwbBean
True if passivation capable false otherwise.

Specified by:
isPassivationCapable in interface OwbBean<javax.enterprise.inject.Instance<T>>
Overrides:
isPassivationCapable in class AbstractOwbBean<javax.enterprise.inject.Instance<T>>
Returns:
true if this bean is passivation capable


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