T - The type (class) of the beanpublic class ManagedBean<T> extends AbstractClassBean<T>
annotatedType, enhancedAnnotatedItemtypebeanManager| Modifier | Constructor and Description |
|---|---|
protected |
ManagedBean(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
BeanIdentifier identifier,
BeanManagerImpl beanManager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance of the bean
|
protected void |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
checkType()
Validates the type
|
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g. for initializing decorators
taking into account the possibility of having custom decorators which are
deployed through portable extensions)
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
protected boolean |
isInterceptionCandidate() |
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
boolean |
isProxyable() |
static <T> ManagedBean<T> |
of(BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> clazz,
BeanManagerImpl beanManager)
Creates a simple, annotation defined Web Bean
|
void |
setProducer(InjectionTarget<T> producer) |
protected void |
specialize() |
String |
toString() |
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducergetSpecializedBeans, getType, checkSpecialization, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitializegetBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBeanClass, isNullablegetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativegetIdprotected ManagedBean(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanIdentifier identifier, BeanManagerImpl beanManager)
type - The type of the beanbeanManager - The Bean managerpublic static <T> ManagedBean<T> of(BeanAttributes<T> attributes, EnhancedAnnotatedType<T> clazz, BeanManagerImpl beanManager)
T - The typeclazz - The classbeanManager - the current managerpublic void internalInitialize(BeanDeployerEnvironment environment)
AbstractClassBeaninternalInitialize in class AbstractClassBean<T>public void initializeAfterBeanDiscovery()
RIBeaninitializeAfterBeanDiscovery in class AbstractBean<T,Class<T>>public T create(CreationalContext<T> creationalContext)
creationalContext - the context in which this instance is being createdpublic void destroy(T instance, CreationalContext<T> creationalContext)
protected void checkType()
checkType in class AbstractBean<T,Class<T>>protected void checkBeanImplementation()
AbstractClassBeancheckBeanImplementation in class AbstractClassBean<T>protected void specialize()
specialize in class AbstractBean<T,Class<T>>protected boolean isInterceptionCandidate()
isInterceptionCandidate in class AbstractClassBean<T>public String toString()
toString in class CommonBean<T>public boolean isProxyable()
isProxyable in class RIBean<T>public boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public void setProducer(InjectionTarget<T> producer)
setProducer in class AbstractClassBean<T>Copyright © 2016. All Rights Reserved.