public class BeanConfiguratorImpl.ConstructedBean extends Object implements OwbBean<T>, javax.enterprise.inject.spi.PassivationCapable
| Constructor and Description |
|---|
ConstructedBean() |
| Modifier and Type | Method and Description |
|---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> context) |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> context) |
Class<?> |
getBeanClass() |
String |
getId()
Gets id of the bean.
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
String |
getName() |
javax.enterprise.inject.spi.Producer<T> |
getProducer() |
Set<Annotation> |
getQualifiers() |
Class<T> |
getReturnType()
Returns bean class type
|
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
WebBeansContext |
getWebBeansContext()
Gets the context instance in which this bean belongs to.
|
WebBeansType |
getWebBeansType()
Returns bean type.
|
boolean |
isAlternative() |
boolean |
isDependent()
This determines if this bean is really a dependent bean,
and as such always creats a freshl instance for each
InjectionPoint.
|
boolean |
isEnabled()
Bean is enabled or not.
|
boolean |
isNullable() |
boolean |
isPassivationCapable()
True if passivation capable false otherwise.
|
boolean |
isSpecializedBean()
Returns true if bean is a specialized bean, false otherwise.
|
void |
setEnabled(boolean enabled)
Set enableed flag.
|
void |
setSpecializedBean(boolean specialized)
Set specialized flag.
|
String |
toString() |
public Set<Type> getTypes()
getTypes in interface javax.enterprise.inject.spi.BeanAttributes<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>public Set<Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.BeanAttributes<T>public javax.enterprise.inject.spi.Producer<T> getProducer()
getProducer in interface OwbBean<T>public Class<?> getBeanClass()
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>public Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.inject.spi.BeanAttributes<T>public WebBeansType getWebBeansType()
OwbBeangetWebBeansType in interface OwbBean<T>WebBeansTypepublic String getName()
getName in interface javax.enterprise.inject.spi.BeanAttributes<T>public Class<T> getReturnType()
OwbBeangetReturnType in interface OwbBean<T>public T create(javax.enterprise.context.spi.CreationalContext<T> context)
create in interface javax.enterprise.context.spi.Contextual<T>public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes in interface javax.enterprise.inject.spi.BeanAttributes<T>public void setSpecializedBean(boolean specialized)
OwbBeansetSpecializedBean in interface OwbBean<T>specialized - flagpublic boolean isAlternative()
isAlternative in interface javax.enterprise.inject.spi.BeanAttributes<T>public boolean isNullable()
isNullable in interface javax.enterprise.inject.spi.Bean<T>public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> context)
destroy in interface javax.enterprise.context.spi.Contextual<T>public boolean isSpecializedBean()
OwbBeanisSpecializedBean in interface OwbBean<T>public void setEnabled(boolean enabled)
OwbBeansetEnabled in interface OwbBean<T>enabled - flagpublic boolean isEnabled()
OwbBeanpublic boolean isPassivationCapable()
OwbBeanisPassivationCapable in interface OwbBean<T>public boolean isDependent()
OwbBeanisDependent in interface OwbBean<T>true if this is a dependent beanpublic WebBeansContext getWebBeansContext()
OwbBeangetWebBeansContext in interface OwbBean<T>WebBeansContext instanceCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.