T
- The type (class) of the beanpublic class ManagedBean<T> extends AbstractClassBean<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclass
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
ManagedBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected T |
applyInterceptors(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected void |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
checkType()
Validates the type
|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean
|
protected static String |
createId(String beanType,
WeldClass<?> clazz)
create a more complete id for types that have been added through the SPI
to prevent duplicate id's
|
protected T |
createInstance(javax.enterprise.context.spi.CreationalContext<T> ctx) |
protected static String |
createSimpleId(String beanType,
WeldClass<?> clazz) |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Destroys an instance of the bean
|
ManagedBean<?> |
getSpecializedBean() |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
void |
initializeAfterBeanDiscovery()
In particular cases, the deployer must perform some initialization operations
only after all beans have been deployed (e.g.
|
protected boolean |
isInterceptionCandidate() |
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
boolean |
isProxyable() |
static <T> ManagedBean<T> |
of(WeldClass<T> clazz,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a simple, annotation defined Web Bean
|
protected void |
preSpecialize(BeanDeployerEnvironment environment) |
protected void |
specialize(BeanDeployerEnvironment environment) |
String |
toString() |
applyDecorators, checkConstructor, createEnhancedSubclass, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptionModelForType, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTarget
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize
equals, getBeanClass, getBeanManager, getId, hashCode
protected ManagedBean(WeldClass<T> type, String idSuffix, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
type
- The type of the beanbeanManager
- The Bean managerpublic static <T> ManagedBean<T> of(WeldClass<T> clazz, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
T
- The typeclazz
- The classbeanManager
- the current managerprotected static String createId(String beanType, WeldClass<?> clazz)
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
instance
- The instancepublic void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractClassBean<T>
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class AbstractClassBean<T>
public boolean isPassivationCapableBean()
isPassivationCapableBean
in class RIBean<T>
public boolean isPassivationCapableDependency()
isPassivationCapableDependency
in class RIBean<T>
protected void checkType()
checkType
in class AbstractBean<T,Class<T>>
protected void checkBeanImplementation()
AbstractClassBean
checkBeanImplementation
in class AbstractClassBean<T>
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize
in class AbstractClassBean<T>
protected void specialize(BeanDeployerEnvironment environment)
specialize
in class AbstractBean<T,Class<T>>
public ManagedBean<?> getSpecializedBean()
getSpecializedBean
in class AbstractBean<T,Class<T>>
protected boolean isInterceptionCandidate()
isInterceptionCandidate
in class AbstractClassBean<T>
protected T applyInterceptors(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public boolean isProxyable()
isProxyable
in class RIBean<T>
Copyright © 2012 Seam Framework. All Rights Reserved.