|
||||||||||
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>
com.caucho.config.inject.ProducesMethodBean<X,T>
@Module public class ProducesMethodBean<X,T>
Field Summary |
---|
Fields inherited from class com.caucho.config.inject.AbstractIntrospectedBean |
---|
CURRENT_ANN |
Method Summary | ||
---|---|---|
void |
bind()
|
|
T |
create(CreationalContext<T> createEnv)
Instantiate the bean. |
|
static
|
create(InjectManager manager,
Bean<X> producer,
AnnotatedMethod<? super X> producesMethod,
Arg<? super X>[] producesArgs,
AnnotatedMethod<? super X> disposesMethod,
Arg<? super X>[] disposesArgs)
|
|
void |
destroy(T instance,
CreationalContext<T> cxt)
Call destroy |
|
java.lang.Class<?> |
getBeanClass()
Returns the bean class. |
|
protected java.lang.String |
getDefaultName()
|
|
AnnotatedParameter<? super X> |
getDisposedParameter()
|
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation. |
|
Producer<T> |
getProducer()
|
|
Bean<?> |
getProducerBean()
|
|
AnnotatedMethod<? super X> |
getProducesMethod()
|
|
X |
getScopeAdapter(Bean<?> topBean,
CreationalContextImpl<X> cxt)
|
|
void |
introspect()
|
|
protected void |
introspectSpecializes(Annotated annotated)
Adds the stereotypes from the bean's annotations |
|
boolean |
isInjectionPoint()
|
|
boolean |
isNullable()
Returns true if the bean can be null |
|
void |
setProducer(Producer<T> producer)
|
|
java.lang.String |
toString()
|
Methods inherited from class com.caucho.config.inject.AbstractIntrospectedBean |
---|
dispose, getAnnotated, getBaseType, getId, getJavaClass, getName, getNamedValue, getQualifiers, getScope, getStereotypes, getTargetClass, getTargetName, getTargetSimpleName, getTargetType, getTypes, introspect, introspectDefault, introspectName, introspectQualifiers, introspectScope, introspectStereotypes, isAlternative, isNormalScope, isPassivating, isPassivationCapable, setPassivating, setPassivationId, toDebugString |
Methods inherited from class com.caucho.config.inject.AbstractBean |
---|
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImpl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <X,T> ProducesMethodBean<X,T> create(InjectManager manager, Bean<X> producer, AnnotatedMethod<? super X> producesMethod, Arg<? super X>[] producesArgs, AnnotatedMethod<? super X> disposesMethod, Arg<? super X>[] disposesArgs)
public Producer<T> getProducer()
public void setProducer(Producer<T> producer)
public Bean<?> getProducerBean()
protected java.lang.String getDefaultName()
getDefaultName
in class AbstractIntrospectedBean<T>
public boolean isInjectionPoint()
public boolean isNullable()
AbstractIntrospectedBean
isNullable
in interface Bean<T>
isNullable
in class AbstractIntrospectedBean<T>
public java.lang.Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<T>
getBeanClass
in class AbstractIntrospectedBean<T>
public AnnotatedMethod<? super X> getProducesMethod()
public AnnotatedParameter<? super X> getDisposedParameter()
public java.util.Set<InjectionPoint> getInjectionPoints()
AbstractIntrospectedBean
getInjectionPoints
in interface Bean<T>
getInjectionPoints
in class AbstractIntrospectedBean<T>
protected void introspectSpecializes(Annotated annotated)
introspectSpecializes
in class AbstractIntrospectedBean<T>
public void introspect()
introspect
in class AbstractIntrospectedBean<T>
public T create(CreationalContext<T> createEnv)
AbstractIntrospectedBean
create
in interface Contextual<T>
create
in class AbstractIntrospectedBean<T>
createEnv
- the creation context used to support circular
references.
public X getScopeAdapter(Bean<?> topBean, CreationalContextImpl<X> cxt)
getScopeAdapter
in interface ScopeAdapterBean<X>
public void bind()
bind
in class AbstractIntrospectedBean<T>
public void destroy(T instance, CreationalContext<T> cxt)
destroy
in interface Contextual<T>
destroy
in class AbstractIntrospectedBean<T>
instance
- the instance to destroypublic java.lang.String toString()
toString
in class AbstractBean<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |