T
- the type of class for the beanpublic abstract class AbstractClassBean<T> extends AbstractBean<T,Class<T>>
Modifier and Type | Field and Description |
---|---|
protected WeldClass<T> |
annotatedItem |
protected WeldConstructor<T> |
constructorForEnhancedSubclass |
protected ProxyFactory<T> |
decoratorProxyFactory |
protected WeldClass<T> |
enhancedSubclass |
alternative, beanManager, name, qualifiers, scope, type, types
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractClassBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected T |
applyDecorators(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint) |
protected void |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
checkConstructor() |
protected Class<T> |
createEnhancedSubclass() |
protected void |
defaultPostConstruct(T instance) |
protected void |
defaultPreDestroy(T instance) |
ConstructorInjectionPoint<T> |
getConstructor()
Returns the constructor
|
List<javax.enterprise.inject.spi.Decorator<?>> |
getDecorators() |
protected String |
getDefaultName()
Gets the default name
|
List<? extends Set<? extends MethodInjectionPoint<?,?>>> |
getInitializerMethods()
Gets the annotated methods
|
List<? extends Set<FieldInjectionPoint<?,?>>> |
getInjectableFields() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
javax.enterprise.inject.spi.InjectionTarget<T> |
getInjectionTarget() |
List<WeldMethod<?,? super T>> |
getPostConstruct()
Returns the post-construct method
|
List<WeldMethod<?,? super T>> |
getPreDestroy()
Returns the pre-destroy method
|
WeldClass<T> |
getWeldAnnotated()
Gets the annotated item
|
boolean |
hasDecorators() |
boolean |
hasInterceptors() |
protected void |
initAfterInterceptorsAndDecoratorsInitialized() |
protected void |
initConstructor()
Initializes the constructor
|
void |
initDecorators() |
protected void |
initEnhancedSubclass() |
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 void |
initInitializerMethods()
Initializes the initializer methods
|
protected void |
initInjectableFields()
Initializes the injection points
|
protected void |
initInterceptorsIfNeeded() |
protected void |
initPostConstruct()
Initializes the post-construct method
|
protected void |
initPreDestroy()
Initializes the pre-destroy method
|
protected void |
initScope() |
protected void |
initType()
Initializes the bean type
|
protected abstract boolean |
isInterceptionCandidate() |
protected boolean |
isSubclassed() |
protected void |
preSpecialize(BeanDeployerEnvironment environment) |
void |
setInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget) |
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, checkType, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getSpecializedBean, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, hasDefaultProducer, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize, specialize
equals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, toString
protected WeldConstructor<T> constructorForEnhancedSubclass
protected ProxyFactory<T> decoratorProxyFactory
protected AbstractClassBean(WeldClass<T> type, String idSuffix, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
type
- The typebeanManager
- The Bean managerpublic void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractBean<T,Class<T>>
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class AbstractBean<T,Class<T>>
protected void initAfterInterceptorsAndDecoratorsInitialized()
protected void initInterceptorsIfNeeded()
public void initDecorators()
public boolean hasDecorators()
protected T applyDecorators(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext, javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint)
public List<javax.enterprise.inject.spi.Decorator<?>> getDecorators()
protected void initType()
protected void initInjectableFields()
protected void initInitializerMethods()
protected void initScope()
initScope
in class AbstractBean<T,Class<T>>
protected void checkBeanImplementation()
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize
in class AbstractBean<T,Class<T>>
public WeldClass<T> getWeldAnnotated()
getWeldAnnotated
in class AbstractBean<T,Class<T>>
protected String getDefaultName()
getDefaultName
in class AbstractBean<T,Class<T>>
public List<? extends Set<? extends MethodInjectionPoint<?,?>>> getInitializerMethods()
public List<? extends Set<FieldInjectionPoint<?,?>>> getInjectableFields()
protected void initPostConstruct()
protected void initPreDestroy()
public List<WeldMethod<?,? super T>> getPostConstruct()
public List<WeldMethod<?,? super T>> getPreDestroy()
protected abstract boolean isInterceptionCandidate()
public void setInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
public javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface javax.enterprise.inject.spi.Bean<T>
getInjectionPoints
in class RIBean<T>
protected void defaultPreDestroy(T instance)
protected void defaultPostConstruct(T instance)
public boolean hasInterceptors()
protected void checkConstructor()
protected void initConstructor()
public ConstructorInjectionPoint<T> getConstructor()
protected boolean isSubclassed()
protected void initEnhancedSubclass()
Copyright © 2013 Seam Framework. All rights reserved.