@Module public class ProducesFieldBean<X,T> extends AbstractIntrospectedBean<T>
CURRENT_ANN| Modifier | Constructor and Description |
|---|---|
protected |
ProducesFieldBean(InjectManager manager,
Bean<X> producerBean,
AnnotatedField<X> beanField,
AnnotatedMethod<X> disposesMethod,
Arg[] disposesArgs) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
T |
create(CreationalContext<T> createEnv)
Instantiate the bean.
|
static ProducesFieldBean |
create(InjectManager manager,
Bean producer,
AnnotatedField beanField,
AnnotatedMethod disposesMethod,
Arg[] disposesArgs) |
void |
destroy(T instance,
CreationalContext<T> cxt)
Call destroy
|
java.lang.Class<?> |
getBeanClass()
Returns the bean class.
|
protected java.lang.String |
getDefaultName() |
AnnotatedField<X> |
getField() |
Producer<T> |
getProducer() |
Bean<X> |
getProducerBean() |
void |
introspect() |
void |
setProducer(Producer<T> producer) |
java.lang.String |
toString() |
dispose, getAnnotated, getBaseType, getId, getInjectionPoints, getJavaClass, getName, getNamedValue, getQualifiers, getScope, getStereotypes, getTargetClass, getTargetName, getTargetSimpleName, getTargetType, getTypes, introspect, introspectDefault, introspectName, introspectQualifiers, introspectScope, introspectSpecializes, introspectStereotypes, isAlternative, isNormalScope, isNullable, isPassivating, isPassivationCapable, setPassivating, setPassivationId, toDebugStringcalculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImplprotected ProducesFieldBean(InjectManager manager, Bean<X> producerBean, AnnotatedField<X> beanField, AnnotatedMethod<X> disposesMethod, Arg[] disposesArgs)
public static ProducesFieldBean create(InjectManager manager, Bean producer, AnnotatedField beanField, AnnotatedMethod disposesMethod, Arg[] disposesArgs)
public java.lang.Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>getBeanClass in class AbstractIntrospectedBean<T>public AnnotatedField<X> getField()
protected java.lang.String getDefaultName()
getDefaultName 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 void destroy(T instance, CreationalContext<T> cxt)
AbstractIntrospectedBeandestroy in interface Contextual<T>destroy in class AbstractIntrospectedBean<T>instance - the instance to destroypublic void bind()
bind in class AbstractIntrospectedBean<T>public java.lang.String toString()
toString in class AbstractBean<T>