|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.inject.manager.Bean<T>
org.jboss.webbeans.bean.RIBean<T>
org.jboss.webbeans.bean.AbstractBean<T,E>
T - the type of beanE - the Class> of the bean typepublic abstract class AbstractBean<T,E>
An abstract bean representation common for all beans
| Field Summary | |
|---|---|
protected boolean |
_serializable
|
protected DependentInstancesStore |
dependentInstancesStore
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
deploymentType
|
protected java.util.Set<AnnotatedInjectionPoint<?,?>> |
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
|
protected java.util.Set<java.lang.reflect.Type> |
types
|
| 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 boolean |
checkInjectionPointsAreSerializable()
|
protected void |
checkRequiredTypesImplemented()
Validates that the required types are implemented |
boolean |
equals(java.lang.Object other)
|
protected abstract AnnotatedItem<T,E> |
getAnnotatedItem()
Returns the annotated time the bean represents |
java.util.Set<java.lang.annotation.Annotation> |
getBindings()
Gets the binding types |
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 |
DependentInstancesStore |
getDependentInstancesStore()
|
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,
AnnotationStore.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<AnnotatedInjectionPoint<?,?>> |
getInjectionPoints()
|
protected 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 |
abstract AbstractBean<?,?> |
getSpecializedBean()
|
java.lang.Class<T> |
getType()
Gets the type of the bean |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Gets the API types of the bean |
int |
hashCode()
|
protected void |
init()
Initializes the bean and its metadata |
protected void |
initBindingTypes()
Initializes the binding types |
protected void |
initDefaultBindings()
|
protected abstract void |
initDeploymentType()
Initializes the deployment types |
protected void |
initDeploymentTypeFromStereotype()
|
protected void |
initName()
Initializes the name |
protected void |
initPrimitive()
Initializes the primitive flag |
protected void |
initProxyable()
|
protected abstract void |
initScopeType()
Initializes the scope type |
protected boolean |
initScopeTypeFromStereotype()
|
protected void |
initSerializable()
|
protected void |
initSpecialization()
|
protected abstract void |
initType()
Initializes the type of the bean |
protected void |
initTypes()
Initializes the API types |
boolean |
isAssignableFrom(AnnotatedItem<?,?> annotatedItem)
Checks if this beans annotated item is assignable from another annotated item |
boolean |
isDependent()
|
boolean |
isNullable()
Indicates if bean is nullable |
boolean |
isPrimitive()
Indicates if bean type is a primitive |
boolean |
isProxyable()
|
boolean |
isSerializable()
|
boolean |
isSpecializing()
|
protected void |
postSpecialization()
|
protected void |
preCheckSpecialization()
|
java.lang.String |
toString()
Gets a string representation |
| Methods inherited from class org.jboss.webbeans.bean.RIBean |
|---|
getManager |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.context.Contextual |
|---|
create, destroy |
| Field Detail |
|---|
protected DependentInstancesStore dependentInstancesStore
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.reflect.Type> types
protected java.util.Set<AnnotatedInjectionPoint<?,?>> injectionPoints
protected ManagerImpl manager
protected boolean _serializable
| 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,
AnnotationStore.AnnotationMap possibleDeploymentTypes)
enabledDeploymentTypes - The currently enabled deployment typespossibleDeploymentTypes - The possible deployment types
protected void init()
protected void initTypes()
protected void initBindingTypes()
protected void initDefaultBindings()
protected abstract void initDeploymentType()
protected void initDeploymentTypeFromStereotype()
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
protected void initName()
protected void initProxyable()
protected void initPrimitive()
protected boolean checkInjectionPointsAreSerializable()
protected abstract void initScopeType()
protected boolean initScopeTypeFromStereotype()
protected abstract void initType()
protected void checkDeploymentType()
protected void checkRequiredTypesImplemented()
protected void postSpecialization()
protected void preCheckSpecialization()
protected void initSpecialization()
protected void bindDecorators()
protected void bindInterceptors()
protected abstract AnnotatedItem<T,E> getAnnotatedItem()
public java.util.Set<java.lang.annotation.Annotation> getBindings()
getBindings in class Bean<T>Bean.getBindings()protected abstract java.lang.String getDefaultName()
public abstract AbstractBean<?,?> getSpecializedBean()
getSpecializedBean in class RIBean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
getDeploymentType in class Bean<T>Bean.getDeploymentType()public java.util.Set<AnnotatedInjectionPoint<?,?>> getInjectionPoints()
getInjectionPoints in class RIBean<T>protected 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()public java.lang.Class<T> getType()
getType in class RIBean<T>public java.util.Set<java.lang.reflect.Type> 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()
isPrimitive in class RIBean<T>public boolean isSerializable()
isSerializable in class Bean<T>protected void initSerializable()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isProxyable()
isProxyable in class RIBean<T>public DependentInstancesStore getDependentInstancesStore()
public boolean isDependent()
isDependent in class RIBean<T>public boolean isSpecializing()
isSpecializing in class RIBean<T>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||