@Module public class AbstractIntrospectedBean<T> extends AbstractBean<T> implements 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(<any> env)
Instantiate the bean.
|
void |
destroy(T instance,
<any> env)
Call destroy
|
void |
dispose(T instance) |
Annotated |
getAnnotated() |
BaseType |
getBaseType() |
java.lang.Class<?> |
getBeanClass() |
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() |
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()
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()
getName in class AbstractBean<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in class AbstractBean<T>public java.lang.String getId()
getId 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 class AbstractBean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope in class AbstractBean<T>public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes in class AbstractBean<T>public boolean isAlternative()
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 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(<any> env)
create in class AbstractBean<T>public void destroy(T instance, <any> env)
destroy in class AbstractBean<T>public void dispose(T instance)
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in class AbstractBean<T>protected java.lang.String getNamedValue(java.lang.annotation.Annotation ann)
public java.lang.String toDebugString()