|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.inject.AbstractBean<T>
com.caucho.config.inject.AbstractIntrospectedBean<T>
@Module public class AbstractIntrospectedBean<T>
Common bean introspection for Produces and ManagedBean.
Field Summary | |
---|---|
static java.lang.annotation.Annotation[] |
CURRENT_ANN
|
Constructor Summary | |
---|---|
AbstractIntrospectedBean(InjectManager manager,
java.lang.reflect.Type type,
Annotated annotated)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class com.caucho.config.inject.AbstractBean |
---|
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImpl, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.annotation.Annotation[] CURRENT_ANN
Constructor Detail |
---|
public AbstractIntrospectedBean(InjectManager manager, java.lang.reflect.Type type, Annotated annotated)
Method Detail |
---|
public BaseType getBaseType()
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
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 AnnotatedBean
getAnnotated
in class AbstractBean<T>
public java.lang.String getName()
getName
in interface Bean<T>
getName
in class AbstractBean<T>
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 PassivationCapable
getId
in class AbstractBean<T>
public void setPassivationId(java.lang.String passivationId)
setPassivationId
in interface PassivationSetter
public 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()
getScope
in interface Bean<T>
getScope
in class AbstractBean<T>
public java.util.Set<java.lang.reflect.Type> getTypes()
getTypes
in interface Bean<T>
getTypes
in class AbstractBean<T>
public boolean isAlternative()
Bean
isAlternative
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |