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, typesBEAN_ID_PREFIX, BEAN_ID_SEPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClassBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
ServiceRegistry services)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
applyDecorators(T instance,
CreationalContext<T> creationalContext,
InjectionPoint originalInjectionPoint) |
protected Class<T> |
createEnhancedSubclass() |
protected void |
defaultPostConstruct(T instance) |
protected void |
defaultPreDestroy(T instance) |
ConstructorInjectionPoint<T> |
getConstructor()
Returns the constructor
|
List<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<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time. |
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 |
checkBeanImplementation()
Validates the bean implementation
|
protected void |
checkConstructor() |
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. for initializing decorators
taking into account the possibility of having custom decorators which are
deployed through portable extensions)
|
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(InjectionTarget<T> injectionTarget) |
addInjectionPoint, addInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getName, getNewInjectionPoints, getQualifiers, getScope, getServices, getSpecializedBean, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, hasDefaultProducer, checkDelegateInjectionPoints, checkType, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isAlternative, isDependent, isInitialized, isNullable, isPrimitive, isProxyRequired, isSpecializing, postSpecialize, specializeequals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isNormalScoped, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreate, destroyprotected WeldConstructor<T> constructorForEnhancedSubclass
protected ProxyFactory<T> decoratorProxyFactory
protected AbstractClassBean(WeldClass<T> type, String idSuffix, BeanManagerImpl beanManager, ServiceRegistry services)
type - The typebeanManager - The Bean managerpublic void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractBean<T,Class<T>>public void initializeAfterBeanDiscovery()
RIBeaninitializeAfterBeanDiscovery in class AbstractBean<T,Class<T>>protected void initAfterInterceptorsAndDecoratorsInitialized()
protected void initInterceptorsIfNeeded()
public void initDecorators()
public boolean hasDecorators()
protected T applyDecorators(T instance, CreationalContext<T> creationalContext, InjectionPoint originalInjectionPoint)
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(InjectionTarget<T> injectionTarget)
public InjectionTarget<T> getInjectionTarget()
public Set<InjectionPoint> getInjectionPoints()
BeanInjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time.getInjectionPoints in interface 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 © 2016 Seam Framework. All Rights Reserved.