T
- The type (class) of the beanpublic class ManagedBean<T> extends AbstractClassBean<T>
annotatedType, enhancedAnnotatedItem
type
beanManager
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, setProducer
checkSpecialization, getSpecializedBeans, getType, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize
getBeanClass, getBeanManager, getQualifierInstances, initialize, isNormalScoped
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBeanClass, isNullable
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
getId
protected 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)
AbstractClassBean
internalInitialize
in class AbstractClassBean<T>
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
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()
AbstractClassBean
checkBeanImplementation
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 © 2014 Seam Framework. All Rights Reserved.