Package org.apache.webbeans.configurator
Class BeanConfiguratorImpl.ConstructedBean
- java.lang.Object
-
- org.apache.webbeans.configurator.BeanConfiguratorImpl.ConstructedBean
-
- 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:
BeanConfiguratorImpl.ConstructedPrioritizedBean
- Enclosing class:
- BeanConfiguratorImpl<T>
public class BeanConfiguratorImpl.ConstructedBean extends Object implements OwbBean<T>, jakarta.enterprise.inject.spi.PassivationCapable
1:1 with the BeanConfigurator.
-
-
Constructor Summary
Constructors Constructor Description ConstructedBean()
-
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)Class<?>getBeanClass()StringgetId()Gets id of the bean.Set<jakarta.enterprise.inject.spi.InjectionPoint>getInjectionPoints()StringgetName()jakarta.enterprise.inject.spi.Producer<T>getProducer()Set<Annotation>getQualifiers()Class<T>getReturnType()Returns bean class typeClass<? extends Annotation>getScope()Set<Class<? extends Annotation>>getStereotypes()Set<Type>getTypes()WebBeansContextgetWebBeansContext()Gets the context instance in which this bean belongs to.WebBeansTypegetWebBeansType()Returns bean type.booleanisAlternative()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.StringtoString()
-
-
-
Method Detail
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypesin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getInjectionPoints
public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
- Specified by:
getInjectionPointsin interfacejakarta.enterprise.inject.spi.Bean<T>
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiersin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getProducer
public jakarta.enterprise.inject.spi.Producer<T> getProducer()
- Specified by:
getProducerin interfaceOwbBean<T>- Returns:
- the producer for this bean;
-
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClassin interfacejakarta.enterprise.inject.spi.Bean<T>
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScopein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getWebBeansType
public WebBeansType getWebBeansType()
Description copied from interface:OwbBeanReturns bean type.- Specified by:
getWebBeansTypein interfaceOwbBean<T>- Returns:
- webbeans type
- See Also:
WebBeansType
-
getName
public String getName()
- Specified by:
getNamein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getReturnType
public Class<T> getReturnType()
Description copied from interface:OwbBeanReturns bean class type- Specified by:
getReturnTypein interfaceOwbBean<T>- Returns:
- bean class type
-
create
public T create(jakarta.enterprise.context.spi.CreationalContext<T> context)
- Specified by:
createin interfacejakarta.enterprise.context.spi.Contextual<T>
-
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes()
- Specified by:
getStereotypesin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
setSpecializedBean
public void setSpecializedBean(boolean specialized)
Description copied from interface:OwbBeanSet specialized flag.- Specified by:
setSpecializedBeanin interfaceOwbBean<T>- Parameters:
specialized- flag
-
isAlternative
public boolean isAlternative()
- Specified by:
isAlternativein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> context)
- Specified by:
destroyin interfacejakarta.enterprise.context.spi.Contextual<T>
-
isSpecializedBean
public boolean isSpecializedBean()
Description copied from interface:OwbBeanReturns true if bean is a specialized bean, false otherwise.- Specified by:
isSpecializedBeanin interfaceOwbBean<T>- Returns:
- true if bean is a specialized bean
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:OwbBeanSet enableed flag.- Specified by:
setEnabledin interfaceOwbBean<T>- Parameters:
enabled- flag
-
isEnabled
public boolean isEnabled()
Description copied from interface:OwbBeanBean is enabled or not.
-
isPassivationCapable
public boolean isPassivationCapable()
Description copied from interface:OwbBeanTrue if passivation capable false otherwise.- Specified by:
isPassivationCapablein interfaceOwbBean<T>- Returns:
- true if this bean is passivation capable
-
isDependent
public boolean isDependent()
Description copied from interface:OwbBeanThis 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.- Specified by:
isDependentin interfaceOwbBean<T>- Returns:
trueif this is a dependent bean
-
getWebBeansContext
public WebBeansContext getWebBeansContext()
Description copied from interface:OwbBeanGets the context instance in which this bean belongs to.- Specified by:
getWebBeansContextin interfaceOwbBean<T>- Returns:
- the
WebBeansContextinstance
-
-