org.apache.webbeans.component
Class InjectionPointBean
java.lang.Object
org.apache.webbeans.component.AbstractOwbBean<javax.enterprise.inject.spi.InjectionPoint>
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>
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType |
|
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 boolean |
isStackEmpty()
|
static void |
removeThreadLocal()
Removes the ThreadLocal from the ThreadMap to prevent memory leaks. |
static boolean |
setThreadLocal(javax.enterprise.inject.spi.InjectionPoint ip)
|
static void |
unsetThreadLocal()
|
| 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 |
InjectionPointBean
public InjectionPointBean(WebBeansContext webBeansContext)
setThreadLocal
public static boolean setThreadLocal(javax.enterprise.inject.spi.InjectionPoint ip)
unsetThreadLocal
public static void unsetThreadLocal()
removeThreadLocal
public static void removeThreadLocal()
- Removes the ThreadLocal from the ThreadMap to prevent memory leaks.
isStackEmpty
public static boolean isStackEmpty()
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 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<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-2012 The Apache Software Foundation. All Rights Reserved.