@Module public class ProducesMethodBean<X,T> extends AbstractIntrospectedBean<T> implements ScopeAdapterBean<X>
CURRENT_ANN| Modifier and Type | Method and Description |
|---|---|
void |
bind() |
T |
create(<any> createEnv)
Instantiate the bean.
|
static <X,T> ProducesMethodBean<X,T> |
create(InjectManager manager,
<any> producer,
<any> producesMethod,
Arg<? super X>[] producesArgs,
<any> disposesMethod,
Arg<? super X>[] disposesArgs) |
void |
destroy(T instance,
<any> cxt)
Call destroy
|
java.lang.Class<?> |
getBeanClass() |
protected java.lang.String |
getDefaultName() |
<any> |
getDisposedParameter() |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the set of injection points, for validation.
|
<any> |
getProducer() |
<any> |
getProducerBean() |
<any> |
getProducesMethod() |
X |
getScopeAdapter(<any> 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(<any> 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, toDisplayStringImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetScopeAdapterpublic static <X,T> ProducesMethodBean<X,T> create(InjectManager manager, <any> producer, <any> producesMethod, Arg<? super X>[] producesArgs, <any> disposesMethod, Arg<? super X>[] disposesArgs)
public <any> getProducer()
public void setProducer(<any> producer)
public <any> getProducerBean()
protected java.lang.String getDefaultName()
getDefaultName in class AbstractIntrospectedBean<T>public boolean isInjectionPoint()
public boolean isNullable()
AbstractIntrospectedBeanisNullable in class AbstractIntrospectedBean<T>public java.lang.Class<?> getBeanClass()
getBeanClass in class AbstractIntrospectedBean<T>public <any> getProducesMethod()
public <any> getDisposedParameter()
public java.util.Set<InjectionPoint> getInjectionPoints()
AbstractIntrospectedBeangetInjectionPoints 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(<any> createEnv)
AbstractIntrospectedBeancreate in class AbstractIntrospectedBean<T>public X getScopeAdapter(<any> topBean, CreationalContextImpl<X> cxt)
public void bind()
bind in class AbstractIntrospectedBean<T>public void destroy(T instance, <any> cxt)
destroy in class AbstractIntrospectedBean<T>public java.lang.String toString()
toString in class AbstractBean<T>