X - T - S - public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractBean<T,S>
typebeanManager| Constructor and Description |
|---|
AbstractProducerBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
org.jboss.weld.serialization.spi.BeanIdentifier identifier,
AbstractClassBean<X> declaringBean,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the bean
|
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
abstract javax.enterprise.inject.spi.AnnotatedMember<? super X> |
getAnnotated()
Returns the annotated item the bean represents
|
Class<?> |
getBeanClass() |
AbstractClassBean<X> |
getDeclaringBean()
Returns the declaring bean
|
abstract EnhancedAnnotatedMember<T,?,S> |
getEnhancedAnnotated()
Returns the weld-enhanced annotated item the bean represents.
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
protected T |
checkReturnValue(T instance)
Validates the return value
|
protected void |
checkType() |
protected void |
initType()
Initializes the type
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
protected boolean |
isTypeSerializable(Object instance) |
getProducer, getSpecializedBeans, getType, checkSpecialization, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setIgnoreFinalMethods, setProducer, specializecleanupAfterBoot, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, isProxyable, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativepublic AbstractProducerBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, org.jboss.weld.serialization.spi.BeanIdentifier identifier, AbstractClassBean<X> declaringBean, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
declaringBean - The declaring beanbeanManager - The Bean managerpublic Class<?> getBeanClass()
getBeanClass in interface javax.enterprise.inject.spi.Bean<T>getBeanClass in class RIBean<T>protected void initType()
public void internalInitialize(BeanDeployerEnvironment environment)
internalInitialize in class AbstractBean<T,S extends Member>public boolean isPassivationCapableBean()
isPassivationCapableBean in class RIBean<T>public boolean isPassivationCapableDependency()
isPassivationCapableDependency in class RIBean<T>public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
protected T checkReturnValue(T instance)
instance - The instance to validateprotected void checkType()
checkType in class AbstractBean<T,S extends Member>protected boolean isTypeSerializable(Object instance)
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
public AbstractClassBean<X> getDeclaringBean()
public abstract javax.enterprise.inject.spi.AnnotatedMember<? super X> getAnnotated()
AbstractBeangetAnnotated in class AbstractBean<T,S extends Member>public abstract EnhancedAnnotatedMember<T,?,S> getEnhancedAnnotated()
AbstractBeanIllegalStateException at runtime.getEnhancedAnnotated in class AbstractBean<T,S extends Member>Copyright © 2017. All rights reserved.