Package org.apache.webbeans.component
Class ResourceBean<X,T extends Annotation>
- java.lang.Object
-
- org.apache.webbeans.component.BeanAttributesImpl<T>
-
- org.apache.webbeans.component.AbstractOwbBean<T>
-
- org.apache.webbeans.component.AbstractProducerBean<T>
-
- org.apache.webbeans.component.ProducerFieldBean<X>
-
- org.apache.webbeans.component.ResourceBean<X,T>
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<X>,jakarta.enterprise.inject.spi.Bean<X>,jakarta.enterprise.inject.spi.BeanAttributes<X>,jakarta.enterprise.inject.spi.PassivationCapable,OwbBean<X>
public class ResourceBean<X,T extends Annotation> extends ProducerFieldBean<X>
-
-
Field Summary
-
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType
-
-
Constructor Summary
Constructors Constructor Description ResourceBean(InjectionTargetBean<?> ownerComponent, org.apache.webbeans.spi.api.ResourceReference<X,T> resourceReference, jakarta.enterprise.inject.spi.BeanAttributes<X> beanAttributes, Class<X> beanClass, jakarta.enterprise.inject.spi.ProducerFactory<X> producerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XgetActualInstance()Called after deserialization to get a new instance for some type of resource bean instance that are not serializable.org.apache.webbeans.spi.api.ResourceReference<X,T>getReference()booleanisPassivationCapable()True if passivation capable false otherwise.-
Methods inherited from class org.apache.webbeans.component.ProducerFieldBean
addToStringInfo, create, getCreatorField, getId, setProducerField
-
Methods inherited from class org.apache.webbeans.component.AbstractProducerBean
checkNullInstance, checkScopeType, getOwnerComponent, getProducer, getReturnType, isPassivationCapable, providedId
-
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
destroy, equals, getBeanClass, getInjectionPoints, getLogger, getWebBeansContext, getWebBeansType, hashCode, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toString
-
Methods inherited from class org.apache.webbeans.component.BeanAttributesImpl
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
-
-
-
Method Detail
-
getActualInstance
public X getActualInstance()
Called after deserialization to get a new instance for some type of resource bean instance that are not serializable. TODO: broken if producer is wrapped but surely better than actually serializing- Returns:
- a new instance of this resource bean.
-
isPassivationCapable
public boolean isPassivationCapable()
Description copied from interface:OwbBeanTrue if passivation capable false otherwise.- Specified by:
isPassivationCapablein interfaceOwbBean<X>- Overrides:
isPassivationCapablein classProducerFieldBean<X>- Returns:
- true if this bean is passivation capable
-
-