Package org.jboss.weld.bean
Class ProducerField<X,T>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.AbstractBean<T,S>
-
- org.jboss.weld.bean.AbstractProducerBean<X,T,Field>
-
- org.jboss.weld.bean.ProducerField<X,T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>
,jakarta.enterprise.inject.spi.Bean<T>
,jakarta.enterprise.inject.spi.BeanAttributes<T>
,jakarta.enterprise.inject.spi.PassivationCapable
,WeldBean<T>
- Direct Known Subclasses:
EEResourceProducerField
public class ProducerField<X,T> extends AbstractProducerBean<X,T,Field>
Represents a producer field- Author:
- Pete Muir
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.AbstractBean
type
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProducerField(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl manager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupAfterBoot()
This method is called after the container is started allowing the bean to release any resources that are only required at boot timejakarta.enterprise.inject.spi.AnnotatedField<? super X>
getAnnotated()
Returns the annotated item the bean representsEnhancedAnnotatedField<T,? super X>
getEnhancedAnnotated()
Gets the annotated item representing the fieldSet<AbstractBean<?,?>>
getSpecializedBeans()
boolean
isProxyable()
boolean
isSpecializing()
static <X,T>
ProducerField<X,T>of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a producer fieldString
toString()
-
Methods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, create, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, initType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable
-
Methods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getProducer, getType, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, postSpecialize, preInitialize, preSpecialize, setIgnoreFinalMethods, setProducer, specialize
-
Methods inherited from class org.jboss.weld.bean.RIBean
getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
ProducerField
protected ProducerField(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl manager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
Constructor- Parameters:
method
- The producer field abstractiondeclaringBean
- The declaring beanmanager
- The Bean manager
-
-
Method Detail
-
of
public static <X,T> ProducerField<X,T> of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, DisposalMethod<X,?> disposalMethod, BeanManagerImpl beanManager, org.jboss.weld.bootstrap.api.ServiceRegistry services)
Creates a producer field- Parameters:
field
- The underlying method abstractiondeclaringBean
- The declaring bean abstractionbeanManager
- the current manager- Returns:
- A producer field
-
getAnnotated
public jakarta.enterprise.inject.spi.AnnotatedField<? super X> getAnnotated()
Description copied from class:AbstractBean
Returns the annotated item the bean represents- Specified by:
getAnnotated
in classAbstractProducerBean<X,T,Field>
- Returns:
- The annotated item
-
getEnhancedAnnotated
public EnhancedAnnotatedField<T,? super X> getEnhancedAnnotated()
Gets the annotated item representing the field- Specified by:
getEnhancedAnnotated
in classAbstractProducerBean<X,T,Field>
- Returns:
- The annotated item
-
cleanupAfterBoot
public void cleanupAfterBoot()
Description copied from class:RIBean
This method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBoot
in classRIBean<T>
-
isSpecializing
public boolean isSpecializing()
- Overrides:
isSpecializing
in classAbstractBean<T,Field>
-
toString
public String toString()
- Overrides:
toString
in classCommonBean<T>
-
isProxyable
public boolean isProxyable()
- Specified by:
isProxyable
in classRIBean<T>
-
getSpecializedBeans
public Set<AbstractBean<?,?>> getSpecializedBeans()
- Overrides:
getSpecializedBeans
in classAbstractBean<T,Field>
-
-