@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, toDebugString
calculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImpl
protected 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()
Bean
getBeanClass
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)
AbstractIntrospectedBean
create
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)
AbstractIntrospectedBean
destroy
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>