T - the type of class for the beanpublic abstract class AbstractClassBean<T> extends AbstractBean<T,Class<T>> implements DecorableBean<T>, ClassBean<T>
| Modifier and Type | Field and Description |
|---|---|
protected SlimAnnotatedType<T> |
annotatedType |
protected EnhancedAnnotatedType<T> |
enhancedAnnotatedItem |
typebeanManager| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClassBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
EnhancedAnnotatedType<T> type,
org.jboss.weld.serialization.spi.BeanIdentifier identifier,
BeanManagerImpl beanManager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupAfterBoot()
This method is called after the container is started allowing the bean to
release any resources that are only required at boot time
|
SlimAnnotatedType<T> |
getAnnotated()
Returns the annotated item the bean represents
|
List<javax.enterprise.inject.spi.Decorator<?>> |
getDecorators()
Resolves decorators for this bean.
|
EnhancedAnnotatedType<T> |
getEnhancedAnnotated()
Gets the annotated item
|
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
javax.enterprise.inject.spi.InjectionTarget<T> |
getInjectionTarget()
Duplicate of
getProducer() - kept for backwards compatibility. |
InterceptionModel |
getInterceptors() |
javax.enterprise.inject.spi.InjectionTarget<T> |
getProducer()
Returns injection target used to produce instances of this bean
|
boolean |
hasDecorators() |
boolean |
hasInterceptors() |
protected void |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
initType()
Initializes the bean type
|
void |
internalInitialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata
|
protected abstract boolean |
isInterceptionCandidate() |
protected void |
preSpecialize() |
void |
setInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget) |
void |
setProducer(javax.enterprise.inject.spi.InjectionTarget<T> producer) |
void |
setProducer(javax.enterprise.inject.spi.Producer<T> producer)
Set a Producer for this bean.
|
getSpecializedBeans, getType, checkSpecialization, checkType, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, setIgnoreFinalMethods, specializedestroy, getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setAttributesattributes, equals, getId, getIdentifier, hashCode, isNullable, toString, unwrapgetName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBeanManagergetIdentifierprotected final SlimAnnotatedType<T> annotatedType
protected volatile EnhancedAnnotatedType<T> enhancedAnnotatedItem
protected AbstractClassBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, org.jboss.weld.serialization.spi.BeanIdentifier identifier, BeanManagerImpl beanManager)
type - The typebeanManager - The Bean managerpublic void internalInitialize(BeanDeployerEnvironment environment)
internalInitialize in class AbstractBean<T,Class<T>>public boolean hasDecorators()
public List<javax.enterprise.inject.spi.Decorator<?>> getDecorators()
DecorableBeangetDecorators in interface DecorableBean<T>protected void initType()
protected void checkBeanImplementation()
protected void preSpecialize()
preSpecialize in class AbstractBean<T,Class<T>>public SlimAnnotatedType<T> getAnnotated()
AbstractBeangetAnnotated in interface ClassBean<T>getAnnotated in class AbstractBean<T,Class<T>>public EnhancedAnnotatedType<T> getEnhancedAnnotated()
getEnhancedAnnotated in interface ClassBean<T>getEnhancedAnnotated in class AbstractBean<T,Class<T>>public void cleanupAfterBoot()
RIBeancleanupAfterBoot in class RIBean<T>protected abstract boolean isInterceptionCandidate()
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<T>public InterceptionModel getInterceptors()
public boolean hasInterceptors()
public javax.enterprise.inject.spi.InjectionTarget<T> getProducer()
ClassBeangetProducer in interface ClassBean<T>getProducer in class AbstractBean<T,Class<T>>public void setProducer(javax.enterprise.inject.spi.InjectionTarget<T> producer)
public javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
getProducer() - kept for backwards compatibility.public void setInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
public void setProducer(javax.enterprise.inject.spi.Producer<T> producer)
AbstractBeansetProducer in class AbstractBean<T,Class<T>>Copyright © 2017. All rights reserved.