org.apache.webbeans.component
Class InjectionPointBean

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

public class InjectionPointBean
extends AbstractOwbBean<javax.enterprise.inject.spi.InjectionPoint>


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
InjectionPointBean(WebBeansContext webBeansContext)
           
 
Method Summary
protected  javax.enterprise.inject.spi.InjectionPoint createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.spi.InjectionPoint> creationalContext)
          Creates the instance of the bean that has a specific implementation type.
protected  void destroyInstance(javax.enterprise.inject.spi.InjectionPoint instance, javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.spi.InjectionPoint> creationalContext)
          Destroy the instance of the bean.
 boolean isPassivationCapable()
          True if passivation capable false otherwise.
static void removeThreadLocal()
          Removes the ThreadLocal from the ThreadMap to prevent memory leaks.
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, 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

InjectionPointBean

public InjectionPointBean(WebBeansContext webBeansContext)
Method Detail

removeThreadLocal

public static void removeThreadLocal()
Removes the ThreadLocal from the ThreadMap to prevent memory leaks.


createInstance

protected javax.enterprise.inject.spi.InjectionPoint createInstance(javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.spi.InjectionPoint> 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.spi.InjectionPoint>
Parameters:
creationalContext - the contextual instance shall be created in
Returns:
instance of the bean

destroyInstance

protected void destroyInstance(javax.enterprise.inject.spi.InjectionPoint instance,
                               javax.enterprise.context.spi.CreationalContext<javax.enterprise.inject.spi.InjectionPoint> creationalContext)
Description copied from class: AbstractOwbBean
Destroy the instance of the bean. Each subclass must define its own destroy mechanism.

Overrides:
destroyInstance in class AbstractOwbBean<javax.enterprise.inject.spi.InjectionPoint>
Parameters:
instance - instance of the bean that is being destroyed
creationalContext - the contextual instance has been created in

isPassivationCapable

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

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


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