T - The type (class) of the beanpublic class ManagedBean<T> extends AbstractClassBean<T>
annotatedItem, constructorForEnhancedSubclass, decoratorProxyFactory, enhancedSubclassalternative, beanManager, name, qualifiers, scope, type, typesBEAN_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() |
boolean |
hasDefaultProducer()
Returns true if the bean uses the default
Producer ( or InjectionTarget). |
protected void |
initAfterInterceptorsAndDecoratorsInitialized() |
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
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, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initDecorators, initEnhancedSubclass, initializeAfterBeanDiscovery, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTargetaddInjectionPoint, 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, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecializeequals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isNormalScopedprotected 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>protected void initAfterInterceptorsAndDecoratorsInitialized()
initAfterInterceptorsAndDecoratorsInitialized 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()
AbstractClassBeancheckBeanImplementation 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>public boolean hasDefaultProducer()
AbstractBeanProducer ( or InjectionTarget). The method returns false if the
producer of the bean was replaced by an extension.hasDefaultProducer in class AbstractBean<T,Class<T>>Copyright © 2014 Seam Framework. All Rights Reserved.