|
||||||||||
| 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 - E - public 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 |
|---|
bindings, manager, name, scopeType, 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 manager)
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 |
checkType()
|
protected void |
defaultPostConstruct(T instance)
|
protected void |
defaultPreDestroy(T instance)
|
protected static java.util.Set<java.lang.annotation.Annotation> |
flattenInterceptorBindings(BeanManagerImpl manager,
java.util.Set<java.lang.annotation.Annotation> annotations)
Extracts the complete set of interception bindings from a given set of annotations. |
WeldClass<T> |
getAnnotatedItem()
Gets the annotated item |
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()
|
WeldMethod<?,?> |
getPostConstruct()
Returns the post-construct method |
WeldMethod<?,?> |
getPreDestroy()
Returns the pre-destroy method |
java.util.Set<java.lang.String> |
getSuperclasses()
|
boolean |
hasDecorators()
|
protected void |
initDecorators()
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
protected void |
initInitializerMethods()
Initializes the initializer methods |
protected void |
initInjectableFields()
Initializes the injection points |
protected void |
initInterceptors()
|
protected void |
initPostConstruct()
Initializes the post-construct method |
protected void |
initPreDestroy()
Initializes the pre-destroy method |
protected void |
initProxyClassForDecoratedBean()
|
protected void |
initScopeType()
Initializes the scope type |
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, getDescription, getId, getManager, hashCode, 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 manager)
type - The typemanager - The Bean manager| Method Detail |
|---|
public void initialize(BeanDeployerEnvironment environment)
initialize in class AbstractBean<T,java.lang.Class<T>>protected void checkType()
protected 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 initScopeType()
AbstractBean
initScopeType 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> getAnnotatedItem()
getAnnotatedItem 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()
public java.util.Set<java.lang.String> getSuperclasses()
protected void initPostConstruct()
protected void initPreDestroy()
public WeldMethod<?,?> getPostConstruct()
public WeldMethod<?,?> getPreDestroy()
protected abstract boolean isInterceptionCandidate()
protected static java.util.Set<java.lang.annotation.Annotation> flattenInterceptorBindings(BeanManagerImpl manager,
java.util.Set<java.lang.annotation.Annotation> annotations)
manager - annotations -
protected void initInterceptors()
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||