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 |
|---|---|
protected void |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
checkType()
Validates the type
|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance of the bean
|
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g.
|
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
|
protected void |
specialize() |
String |
toString() |
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducer, setProducercheckSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitializegetBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScopedattributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, 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)
instance - The instancecreationalContext - the context in which this instance was createdprotected 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>Copyright © 2013 Seam Framework. All Rights Reserved.