@Module public class ProducesMethodBean<X,T> extends AbstractIntrospectedBean<T> implements ScopeAdapterBean<X>
CURRENT_ANN| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
T |
create(CreationalContext<T> createEnv)
Instantiate the bean.
|
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) |
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() |
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, toDebugStringcalculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImplpublic 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 Bean<?> getProducerBean()
protected java.lang.String getDefaultName()
getDefaultName in class AbstractIntrospectedBean<T>public boolean isInjectionPoint()
public boolean isNullable()
AbstractIntrospectedBeanisNullable in interface Bean<T>isNullable in class AbstractIntrospectedBean<T>public java.lang.Class<?> getBeanClass()
BeangetBeanClass 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()
AbstractIntrospectedBeangetInjectionPoints 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)
AbstractIntrospectedBeancreate 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>