Package org.apache.webbeans.component
Interface OwbBean<T>
-
- All Superinterfaces:
jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.context.spi.Contextual<T>
- All Known Implementing Classes:
AbstractOwbBean,AbstractProducerBean,BeanConfiguratorImpl.ConstructedBean,BeanConfiguratorImpl.ConstructedPrioritizedBean,BeanManagerBean,BeanMetadataBean,BuiltInOwbBean,CdiInterceptorBean,ConversationBean,DecoratorBean,DecoratorMetadataBean,EjbInterceptorBean,EventBean,EventMetadataBean,ExtensionBean,InjectionPointBean,InjectionTargetBean,InstanceBean,InterceptedOrDecoratedBeanMetadataBean,InterceptionFactoryBean,InterceptorBean,InterceptorMetadataBean,ManagedBean,PassivationCapableThirdpartyBeanImpl,PrincipalBean,ProducerAwareInjectionTargetBean,ProducerFieldBean,ProducerMethodBean,RequestContextControllerBean,ResourceBean,SelfInterceptorBean,ThirdpartyBeanImpl
public interface OwbBean<T> extends jakarta.enterprise.inject.spi.Bean<T>OWB specific extension of theBeaninterface. It is used internally. Do not use it. Instead useAbstractOwbBeanfor extension.- Version:
- $Rev$ $Date$
bean class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Gets id of the bean.jakarta.enterprise.inject.spi.Producer<T>getProducer()Class<T>getReturnType()Returns bean class typeWebBeansContextgetWebBeansContext()Gets the context instance in which this bean belongs to.WebBeansTypegetWebBeansType()Returns bean type.booleanisDependent()This determines if this bean is really a dependent bean, and as such always creats a freshl instance for each InjectionPoint.booleanisEnabled()Bean is enabled or not.booleanisPassivationCapable()True if passivation capable false otherwise.booleanisSpecializedBean()Returns true if bean is a specialized bean, false otherwise.voidsetEnabled(boolean enabled)Set enableed flag.voidsetSpecializedBean(boolean specialized)Set specialized flag.-
Methods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints
-
-
-
-
Method Detail
-
getProducer
jakarta.enterprise.inject.spi.Producer<T> getProducer()
- Returns:
- the producer for this bean;
-
getWebBeansType
WebBeansType getWebBeansType()
Returns bean type.- Returns:
- webbeans type
- See Also:
WebBeansType
-
setSpecializedBean
void setSpecializedBean(boolean specialized)
Set specialized flag.- Parameters:
specialized- flag
-
isSpecializedBean
boolean isSpecializedBean()
Returns true if bean is a specialized bean, false otherwise.- Returns:
- true if bean is a specialized bean
-
setEnabled
void setEnabled(boolean enabled)
Set enableed flag.- Parameters:
enabled- flag
-
isEnabled
boolean isEnabled()
Bean is enabled or not.- Returns:
- true if enabled
-
getId
String getId()
Gets id of the bean.- Returns:
- id of the bean
-
isPassivationCapable
boolean isPassivationCapable()
True if passivation capable false otherwise.- Returns:
- true if this bean is passivation capable
-
isDependent
boolean isDependent()
This determines if this bean is really a dependent bean, and as such always creats a freshl instance for each InjectionPoint. A BeanManagerBean is e.g. not a dependent bean.- Returns:
trueif this is a dependent bean
-
getWebBeansContext
WebBeansContext getWebBeansContext()
Gets the context instance in which this bean belongs to.- Returns:
- the
WebBeansContextinstance
-
-