|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
T
- the type of class for the beanpublic abstract class AbstractClassBean<T>
An abstract bean representation common for class-based beans
Field Summary | |
---|---|
protected WeldClass<T> |
annotatedItem
|
protected WeldConstructor<T> |
constructorForEnhancedSubclass
|
protected ProxyFactory<T> |
decoratorProxyFactory
|
protected WeldClass<T> |
enhancedSubclass
|
Fields inherited from class org.jboss.weld.bean.AbstractBean |
---|
alternative, beanManager, name, qualifiers, scope, type, types |
Fields inherited from class org.jboss.weld.bean.RIBean |
---|
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR |
Constructor Summary | |
---|---|
protected |
AbstractClassBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor |
Method Summary | |
---|---|
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 |
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)
|
Methods inherited from class org.jboss.weld.bean.RIBean |
---|
equals, getBeanClass, getBeanManager, getId, getQualifierInstances, hashCode, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.enterprise.context.spi.Contextual |
---|
create, destroy |
Field Detail |
---|
protected WeldClass<T> annotatedItem
protected WeldClass<T> enhancedSubclass
protected WeldConstructor<T> constructorForEnhancedSubclass
protected ProxyFactory<T> decoratorProxyFactory
Constructor Detail |
---|
protected AbstractClassBean(WeldClass<T> type, String idSuffix, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
type
- The typebeanManager
- The Bean managerMethod Detail |
---|
public void initialize(BeanDeployerEnvironment environment)
initialize
in class AbstractBean<T,Class<T>>
public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery
in class AbstractBean<T,Class<T>>
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()
protected Class<T> createEnhancedSubclass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |