@Module public class AbstractIntrospectedBean<T> extends AbstractBean<T> implements PassivationCapable, PassivationSetter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.annotation.Annotation[] |
CURRENT_ANN |
| Constructor and Description |
|---|
AbstractIntrospectedBean(InjectManager manager,
java.lang.reflect.Type type,
Annotated annotated) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bind() |
T |
create(CreationalContext<T> env)
Instantiate the bean.
|
void |
destroy(T instance,
CreationalContext<T> env)
Call destroy
|
void |
dispose(T instance) |
Annotated |
getAnnotated() |
BaseType |
getBaseType() |
java.lang.Class<?> |
getBeanClass()
Returns the bean class.
|
protected java.lang.String |
getDefaultName() |
java.lang.String |
getId() |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
java.lang.Class<?> |
getJavaClass() |
java.lang.String |
getName()
Gets the bean's EL qualifier name.
|
protected java.lang.String |
getNamedValue(java.lang.annotation.Annotation ann) |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's qualifier types
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the scope
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the bean's stereotypes
|
java.lang.Class<?> |
getTargetClass() |
java.lang.String |
getTargetName() |
java.lang.String |
getTargetSimpleName() |
java.lang.reflect.Type |
getTargetType() |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean implements
|
void |
introspect() |
protected void |
introspect(Annotated annotated) |
protected void |
introspectDefault() |
protected void |
introspectName(Annotated annotated)
Introspects the qualifier annotations
|
protected void |
introspectQualifiers(Annotated annotated)
Introspects the qualifier annotations
|
protected void |
introspectScope(Annotated annotated)
Called for implicit introspection.
|
protected void |
introspectSpecializes(Annotated annotated)
Adds the stereotypes from the bean's annotations
|
protected void |
introspectStereotypes(Annotated annotated)
Adds the stereotypes from the bean's annotations
|
boolean |
isAlternative()
True for a disabled alternative.
|
protected boolean |
isNormalScope() |
boolean |
isNullable()
Returns true if the bean can be null
|
protected boolean |
isPassivating() |
boolean |
isPassivationCapable()
Returns true if the bean is serializable
|
void |
setPassivating(boolean isPassivating) |
void |
setPassivationId(java.lang.String passivationId) |
java.lang.String |
toDebugString() |
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImpl, toStringpublic AbstractIntrospectedBean(InjectManager manager, java.lang.reflect.Type type, Annotated annotated)
public BaseType getBaseType()
public java.lang.Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>getBeanClass in class AbstractBean<T>public final java.lang.Class<?> getJavaClass()
getJavaClass in class AbstractBean<T>public java.lang.reflect.Type getTargetType()
public java.lang.String getTargetSimpleName()
public java.lang.String getTargetName()
public java.lang.Class<?> getTargetClass()
public Annotated getAnnotated()
getAnnotated in interface AnnotatedBeangetAnnotated in class AbstractBean<T>public java.lang.String getName()
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in interface Bean<T>getQualifiers in class AbstractBean<T>public java.lang.String getId()
getId in interface PassivationCapablegetId in class AbstractBean<T>public void setPassivationId(java.lang.String passivationId)
setPassivationId in interface PassivationSetterpublic java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
getStereotypes in interface Bean<T>getStereotypes in class AbstractBean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.util.Set<java.lang.reflect.Type> getTypes()
public boolean isAlternative()
BeanisAlternative in interface Bean<T>isAlternative in class AbstractBean<T>public void introspect()
introspect in class AbstractBean<T>protected void introspect(Annotated annotated)
protected void introspectScope(Annotated annotated)
protected void introspectQualifiers(Annotated annotated)
protected void introspectName(Annotated annotated)
protected void introspectStereotypes(Annotated annotated)
protected void introspectSpecializes(Annotated annotated)
protected void introspectDefault()
protected java.lang.String getDefaultName()
protected void bind()
public boolean isNullable()
isNullable in interface Bean<T>isNullable in class AbstractBean<T>public boolean isPassivationCapable()
isPassivationCapable in class AbstractBean<T>protected boolean isPassivating()
protected boolean isNormalScope()
public void setPassivating(boolean isPassivating)
public T create(CreationalContext<T> env)
create in interface Contextual<T>create in class AbstractBean<T>env - the creation context used to support circular
references.public void destroy(T instance, CreationalContext<T> env)
destroy in interface Contextual<T>destroy in class AbstractBean<T>instance - the instance to destroypublic void dispose(T instance)
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Bean<T>getInjectionPoints in class AbstractBean<T>protected java.lang.String getNamedValue(java.lang.annotation.Annotation ann)
public java.lang.String toDebugString()