|
||||||||||
| 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,java.lang.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
|
| 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,
java.lang.String idSuffix,
BeanManagerImpl beanManager)
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()
|
void |
checkType()
|
protected void |
defaultPostConstruct(T instance)
|
protected void |
defaultPreDestroy(T instance)
|
protected static java.util.Set<java.lang.annotation.Annotation> |
flattenInterceptorBindings(BeanManagerImpl beanManager,
java.util.Set<java.lang.annotation.Annotation> annotations)
Extracts the complete set of interception bindings from a given set of annotations. |
ConstructorInjectionPoint<T> |
getConstructor()
Returns the constructor |
java.util.List<javax.enterprise.inject.spi.Decorator<?>> |
getDecorators()
|
protected java.lang.String |
getDefaultName()
Gets the default name |
java.util.List<? extends java.util.Set<? extends MethodInjectionPoint<?,?>>> |
getInitializerMethods()
Gets the annotated methods |
java.util.List<? extends java.util.Set<FieldInjectionPoint<?,?>>> |
getInjectableFields()
|
java.util.Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
|
javax.enterprise.inject.spi.InjectionTarget<T> |
getInjectionTarget()
|
java.util.List<WeldMethod<?,? super T>> |
getPostConstruct()
Returns the post-construct method |
java.util.List<WeldMethod<?,? super T>> |
getPreDestroy()
Returns the pre-destroy method |
WeldClass<T> |
getWeldAnnotated()
Gets the annotated item |
boolean |
hasCdiBoundInterceptors()
|
boolean |
hasDecorators()
|
boolean |
hasDirectlyDefinedInterceptors()
|
protected void |
initCdiBoundInterceptors()
|
protected void |
initConstructor()
Initializes the constructor |
void |
initDecorators()
|
protected void |
initDirectlyDefinedInterceptors()
|
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 |
initPostConstruct()
Initializes the post-construct method |
protected void |
initPreDestroy()
Initializes the pre-destroy method |
protected void |
initProxyClassForDecoratedBean()
|
protected void |
initScope()
|
protected void |
initType()
Initializes the bean type |
protected abstract boolean |
isInterceptionCandidate()
|
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, hashCode, isPassivationCapableBean, isPassivationCapableDependency, isProxyRequired, 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
| Constructor Detail |
|---|
protected AbstractClassBean(WeldClass<T> type,
java.lang.String idSuffix,
BeanManagerImpl beanManager)
type - The typebeanManager - The Bean manager| Method Detail |
|---|
protected static java.util.Set<java.lang.annotation.Annotation> flattenInterceptorBindings(BeanManagerImpl beanManager,
java.util.Set<java.lang.annotation.Annotation> annotations)
beanManager - annotations -
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractBean<T,java.lang.Class<T>>public void initializeAfterBeanDiscovery()
RIBean
initializeAfterBeanDiscovery in class RIBean<T>public void checkType()
checkType in class RIBean<T>public void initDecorators()
public boolean hasDecorators()
protected void initProxyClassForDecoratedBean()
protected T applyDecorators(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
javax.enterprise.inject.spi.InjectionPoint originalInjectionPoint)
public java.util.List<javax.enterprise.inject.spi.Decorator<?>> getDecorators()
protected void initType()
protected void initInjectableFields()
protected void initInitializerMethods()
protected void initScope()
initScope in class AbstractBean<T,java.lang.Class<T>>protected void checkBeanImplementation()
protected void preSpecialize(BeanDeployerEnvironment environment)
preSpecialize in class AbstractBean<T,java.lang.Class<T>>public WeldClass<T> getWeldAnnotated()
getWeldAnnotated in class AbstractBean<T,java.lang.Class<T>>protected java.lang.String getDefaultName()
getDefaultName in class AbstractBean<T,java.lang.Class<T>>public java.util.List<? extends java.util.Set<? extends MethodInjectionPoint<?,?>>> getInitializerMethods()
public java.util.List<? extends java.util.Set<FieldInjectionPoint<?,?>>> getInjectableFields()
protected void initPostConstruct()
protected void initPreDestroy()
public java.util.List<WeldMethod<?,? super T>> getPostConstruct()
public java.util.List<WeldMethod<?,? super T>> getPreDestroy()
protected abstract boolean isInterceptionCandidate()
protected void initCdiBoundInterceptors()
public void setInjectionTarget(javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
public javax.enterprise.inject.spi.InjectionTarget<T> getInjectionTarget()
public java.util.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 hasCdiBoundInterceptors()
public boolean hasDirectlyDefinedInterceptors()
protected void initDirectlyDefinedInterceptors()
protected void checkConstructor()
protected void initConstructor()
public ConstructorInjectionPoint<T> getConstructor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||