Class ThirdpartyBeanImpl<T>
- java.lang.Object
-
- org.apache.webbeans.component.BeanAttributesImpl<T>
-
- org.apache.webbeans.component.AbstractOwbBean<T>
-
- org.apache.webbeans.component.third.ThirdpartyBeanImpl<T>
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.PassivationCapable,OwbBean<T>
- Direct Known Subclasses:
PassivationCapableThirdpartyBeanImpl
public class ThirdpartyBeanImpl<T> extends AbstractOwbBean<T>
-
-
Field Summary
-
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
-
-
Constructor Summary
Constructors Constructor Description ThirdpartyBeanImpl(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.Bean<T> bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(jakarta.enterprise.context.spi.CreationalContext<T> context)voiddestroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> context)booleanequals(Object other)Class<?>getBeanClass()StringgetId()get the unique Id of the bean.Set<jakarta.enterprise.inject.spi.InjectionPoint>getInjectionPoints()jakarta.enterprise.inject.spi.Producer<T>getProducer()inthashCode()We need to override the hash code from the AbstractOwbBean and delegate to the shaded instance.booleanisAlternative()booleanisPassivationCapable()True if passivation capable false otherwise.-
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addToStringInfo, getLogger, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSpecializedBean, providedId, setEnabled, setSpecializedBean, toString
-
Methods inherited from class org.apache.webbeans.component.BeanAttributesImpl
getName, getQualifiers, getScope, getStereotypes, getTypes
-
-
-
-
Constructor Detail
-
ThirdpartyBeanImpl
public ThirdpartyBeanImpl(WebBeansContext webBeansContext, jakarta.enterprise.inject.spi.Bean<T> bean)
-
-
Method Detail
-
getProducer
public jakarta.enterprise.inject.spi.Producer<T> getProducer()
- Returns:
- the producer for this bean;
-
getInjectionPoints
public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
Description copied from class:AbstractOwbBean- Specified by:
getInjectionPointsin interfacejakarta.enterprise.inject.spi.Bean<T>- Overrides:
getInjectionPointsin classAbstractOwbBean<T>
-
create
public T create(jakarta.enterprise.context.spi.CreationalContext<T> context)
Description copied from class:AbstractOwbBean- Specified by:
createin interfacejakarta.enterprise.context.spi.Contextual<T>- Overrides:
createin classAbstractOwbBean<T>
-
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> context)
- Specified by:
destroyin interfacejakarta.enterprise.context.spi.Contextual<T>- Overrides:
destroyin classAbstractOwbBean<T>
-
getId
public String getId()
Description copied from class:AbstractOwbBeanget the unique Id of the bean. This will get used as reference on passivation. Gets id of the bean.
-
isPassivationCapable
public boolean isPassivationCapable()
Description copied from interface:OwbBeanTrue if passivation capable false otherwise.- Specified by:
isPassivationCapablein interfaceOwbBean<T>- Overrides:
isPassivationCapablein classAbstractOwbBean<T>- Returns:
- true if this bean is passivation capable
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClassin interfacejakarta.enterprise.inject.spi.Bean<T>- Overrides:
getBeanClassin classAbstractOwbBean<T>
-
isAlternative
public boolean isAlternative()
- Specified by:
isAlternativein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>- Overrides:
isAlternativein classBeanAttributesImpl<T>
-
hashCode
public int hashCode()
We need to override the hash code from the AbstractOwbBean and delegate to the shaded instance.- Overrides:
hashCodein classAbstractOwbBean<T>- Returns:
- the hash mixed with the shadowed bean.
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classAbstractOwbBean<T>
-
-