org.apache.webbeans.component
Class InjectionPointBean
java.lang.Object
org.apache.webbeans.component.AbstractOwbBean<InjectionPoint>
org.apache.webbeans.component.InjectionPointBean
- All Implemented Interfaces:
- Contextual<InjectionPoint>, Bean<InjectionPoint>, OwbBean<InjectionPoint>
public class InjectionPointBean
- extends AbstractOwbBean<InjectionPoint>
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansType, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString, validatePassivationDependencies |
local
public static ThreadLocal<InjectionPoint> local
InjectionPointBean
public InjectionPointBean()
removeThreadLocal
public static void removeThreadLocal()
- Removes the ThreadLocal from the ThreadMap to prevent memory leaks.
createInstance
protected InjectionPoint createInstance(CreationalContext<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<InjectionPoint>
- Parameters:
creationalContext - the contextual instance shall be created in
- Returns:
- instance of the bean
destroyInstance
protected void destroyInstance(InjectionPoint instance,
CreationalContext<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<InjectionPoint>
- Parameters:
instance - instance of the bean that is being destroyedcreationalContext - 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<InjectionPoint>- Overrides:
isPassivationCapable in class AbstractOwbBean<InjectionPoint>
- Returns:
- true if this bean is passivation capable
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.