|
||||||||||
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 java.util.Set<java.lang.annotation.Annotation> |
bindings
|
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<? extends java.lang.reflect.Type> |
types
|
Constructor Summary | |
---|---|
AbstractBean(ManagerImpl manager)
Constructor |
Method Summary | |
---|---|
protected void |
checkDeploymentType()
Validates the deployment type |
protected void |
checkRequiredTypesImplemented()
Validates that the required types are implemented |
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 |
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,
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> 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()
The injection points of a bean |
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<? extends java.lang.reflect.Type> |
getTypes()
Gets the API types of the bean |
protected void |
initBindings()
Initializes the binding types |
protected void |
initDefaultBindings()
|
protected abstract void |
initDeploymentType()
Initializes the deployment types |
protected void |
initDeploymentTypeFromStereotype()
|
void |
initialize(BeanDeployerEnvironment environment)
Initializes the bean and its metadata |
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 |
initTypes()
Initializes the API types |
boolean |
isAssignableFrom(AnnotatedItem<?,?> annotatedItem)
Checks if this beans annotated item is assignable from another annotated item |
boolean |
isDependent()
|
protected boolean |
isInitialized()
|
boolean |
isNullable()
Indicates if bean is nullable |
boolean |
isPrimitive()
Indicates if bean type is a primitive |
boolean |
isProxyable()
|
boolean |
isSerializable()
The serializability of a bean |
boolean |
isSpecializing()
|
protected void |
postSpecialize()
|
protected void |
preSpecialize(BeanDeployerEnvironment environment)
|
protected void |
specialize(BeanDeployerEnvironment environment)
|
java.lang.String |
toString()
Gets a string representation |
Methods inherited from class org.jboss.webbeans.bean.RIBean |
---|
createId, equals, getId, getManager, hashCode |
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 final DependentInstancesStore dependentInstancesStore
protected java.util.Set<java.lang.annotation.Annotation> bindings
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<? extends 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 managerMethod Detail |
---|
public static java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType(java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> enabledDeploymentTypes, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> possibleDeploymentTypes)
enabledDeploymentTypes
- The currently enabled deployment typespossibleDeploymentTypes
- The possible deployment types
protected boolean isInitialized()
public void initialize(BeanDeployerEnvironment environment)
initialize
in class RIBean<T>
protected void initTypes()
protected void initBindings()
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 abstract void initScopeType()
protected boolean initScopeTypeFromStereotype()
protected void checkDeploymentType()
protected void checkRequiredTypesImplemented()
protected void postSpecialize()
protected void preSpecialize(BeanDeployerEnvironment environment)
protected void specialize(BeanDeployerEnvironment environment)
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()
Bean
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<? extends 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()
Bean
isSerializable
in class Bean<T>
protected void initSerializable()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isProxyable()
isProxyable
in class RIBean<T>
public boolean isDependent()
isDependent
in class RIBean<T>
public boolean isSpecializing()
isSpecializing
in class RIBean<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |