X
- T
- S
- public abstract class AbstractProducerBean<X,T,S extends Member> extends AbstractBean<T,S>
type
beanManager
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 |
---|---|
protected T |
checkReturnValue(T instance)
Validates the return value
|
protected void |
checkType() |
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 void |
initType()
Initializes the type
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
boolean |
isPassivationCapableBean() |
boolean |
isPassivationCapableDependency() |
protected boolean |
isTypeSerializable(Object instance) |
checkSpecialization, getProducer, getSpecializedBeans, getType, initializeAfterBeanDiscovery, isDependent, isProxyRequired, isSpecializing, postSpecialize, preInitialize, preSpecialize, setProducer, specialize
cleanupAfterBoot, getBeanManager, getQualifierInstances, initialize, isNormalScoped, isProxyable
attributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, toString, unwrap
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
public 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()
AbstractBean
getAnnotated
in class AbstractBean<T,S extends Member>
public abstract EnhancedAnnotatedMember<T,?,S> getEnhancedAnnotated()
AbstractBean
IllegalStateException
at runtime.getEnhancedAnnotated
in class AbstractBean<T,S extends Member>
Copyright © 2016. All rights reserved.