|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.webbeans.manager.Bean<T>
org.jboss.webbeans.bean.AbstractBean<T,E>
T - E - public abstract class AbstractBean<T,E>
An abstract bean representation common for all beans
| Field Summary | |
|---|---|
protected java.util.Set<java.lang.Class<?>> |
apiTypes
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
deploymentType
|
protected java.util.Set<AnnotatedItem<?,?>> |
injectionPoints
|
protected ManagerImpl |
manager
|
protected java.lang.String |
name
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
scopeType
|
protected java.lang.Class<T> |
type
|
| Constructor Summary | |
|---|---|
AbstractBean(ManagerImpl manager)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
bindDecorators()
Binds the decorators to the proxy |
protected void |
bindInterceptors()
Binds the interceptors to the proxy |
protected void |
checkDeploymentType()
Validates the deployment type |
protected abstract AnnotatedItem<T,E> |
getAnnotatedItem()
Returns the annotated time the bean represents |
java.util.Set<java.lang.annotation.Annotation> |
getBindingTypes()
Gets the binding types |
protected java.lang.reflect.Type |
getDeclaredBeanType()
Gets the declared bean type |
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> |
getDefaultDeploymentType()
Gets the default deployment type |
protected abstract java.lang.String |
getDefaultName()
Gets the default name of the bean |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getDeploymentType()
Gets the deployment type of the bean |
static java.lang.Class<? extends java.lang.annotation.Annotation> |
getDeploymentType(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> enabledDeploymentTypes,
AbstractAnnotatedItem.AnnotationMap possibleDeploymentTypes)
Helper class for getting deployment type Loops through the enabled deployment types (backwards) and returns the first one present in the possible deployments type, resulting in the deployment type of highest priority |
java.util.Set<AnnotatedItem<?,?>> |
getInjectionPoints()
Gets the injection points of the bean |
MergedStereotypes<T,E> |
getMergedStereotypes()
Gets the merged stereotypes of the bean |
java.lang.String |
getName()
Gets the name of the bean |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScopeType()
Gets the scope type of the bean |
protected AbstractBean<? extends T,E> |
getSpecializedType()
Gets the specializes type of the bean |
java.lang.Class<T> |
getType()
Gets the type of the bean |
java.util.Set<java.lang.Class<?>> |
getTypes()
Gets the API types of the bean |
protected void |
init()
Initializes the bean and its metadata |
protected void |
initApiTypes()
Initializes the API types |
protected void |
initBindingTypes()
Initializes the binding types |
protected void |
initDeploymentType()
Initializes the deployment types |
protected void |
initInjectionPoints()
Initializes the injection points |
protected void |
initName()
Initializes the name |
protected void |
initPrimitive()
Initializes the primitive flag |
protected void |
initScopeType()
Initializes the scope type |
protected abstract void |
initType()
Initializes the type of the bean |
boolean |
isAssignableFrom(AnnotatedItem<?,?> annotatedItem)
Checks if this beans annotated item is assignable from another annotated item |
boolean |
isNullable()
Indicates if bean is nullable |
boolean |
isPrimitive()
Indicates if bean type is a primitive |
boolean |
isSerializable()
Indicates if bean is serializable |
java.lang.String |
toDetailedString()
|
java.lang.String |
toString()
Gets a string representation |
| Methods inherited from class javax.webbeans.manager.Bean |
|---|
create, destroy, getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.Class<? extends java.lang.annotation.Annotation> scopeType
protected java.lang.Class<? extends java.lang.annotation.Annotation> deploymentType
protected java.lang.Class<T> type
protected java.util.Set<java.lang.Class<?>> apiTypes
protected java.util.Set<AnnotatedItem<?,?>> injectionPoints
protected ManagerImpl manager
| Constructor Detail |
|---|
public AbstractBean(ManagerImpl manager)
manager - The Web Beans manager| Method Detail |
|---|
public static java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> enabledDeploymentTypes,
AbstractAnnotatedItem.AnnotationMap possibleDeploymentTypes)
enabledDeploymentTypes - The currently enabled deployment typespossibleDeploymentTypes - The possible deployment types
protected void init()
protected void initApiTypes()
protected void initBindingTypes()
protected void initDeploymentType()
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
protected void initInjectionPoints()
protected void initName()
protected void initPrimitive()
protected void initScopeType()
protected abstract void initType()
protected void checkDeploymentType()
protected void bindDecorators()
protected void bindInterceptors()
protected abstract AnnotatedItem<T,E> getAnnotatedItem()
public java.util.Set<java.lang.annotation.Annotation> getBindingTypes()
getBindingTypes in class Bean<T>Bean.getBindingTypes()protected java.lang.reflect.Type getDeclaredBeanType()
protected abstract java.lang.String getDefaultName()
public java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
getDeploymentType in class Bean<T>Bean.getDeploymentType()public java.util.Set<AnnotatedItem<?,?>> getInjectionPoints()
public MergedStereotypes<T,E> getMergedStereotypes()
public java.lang.String getName()
getName in class Bean<T>Bean.getName()public java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
getScopeType in class Bean<T>Bean.getScopeType()protected AbstractBean<? extends T,E> getSpecializedType()
public java.lang.Class<T> getType()
public java.util.Set<java.lang.Class<?>> getTypes()
getTypes in class Bean<T>Bean.getTypes()public boolean isAssignableFrom(AnnotatedItem<?,?> annotatedItem)
annotatedItem - The other annotation to check
public boolean isNullable()
isNullable in class Bean<T>Bean.isNullable()public boolean isPrimitive()
public boolean isSerializable()
isSerializable in class Bean<T>javax.webbeans.manager.Bean#isSerializable()public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDetailedString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||