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
Represents a producer field
- Author:
- Pete Muir
-
Field Summary
Fields inherited from class org.jboss.weld.bean.AbstractProducerBean
explicitPriorityFields inherited from class org.jboss.weld.bean.AbstractBean
typeFields inherited from class org.jboss.weld.bean.RIBean
beanManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProducerField(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
Modifier and TypeMethodDescriptionvoidThis 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>Returns the annotated item the bean representsEnhancedAnnotatedField<T,? super X> Gets the annotated item representing the fieldSet<AbstractBean<?,?>> booleanbooleanstatic <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 fieldtoString()Methods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, create, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, getPriority, initType, internalInitialize, isPassivationCapableBean, isPassivationCapableDependency, isTypeSerializable, processExplicitPriorityMethods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getProducer, getType, initializeAfterBeanDiscovery, isDependent, isIgnoreFinalMethods, isProxyRequired, postSpecialize, preInitialize, preSpecialize, setIgnoreFinalMethods, setProducer, specializeMethods inherited from class org.jboss.weld.bean.RIBean
getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesMethods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, unwrapMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getId
-
Constructor Details
-
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 Details
-
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
Description copied from class:AbstractBeanReturns the annotated item the bean represents- Specified by:
getAnnotatedin classAbstractProducerBean<X,T, Field> - Returns:
- The annotated item
-
getEnhancedAnnotated
Gets the annotated item representing the field- Specified by:
getEnhancedAnnotatedin classAbstractProducerBean<X,T, Field> - Returns:
- The annotated item
-
cleanupAfterBoot
public void cleanupAfterBoot()Description copied from class:RIBeanThis method is called after the container is started allowing the bean to release any resources that are only required at boot time- Specified by:
cleanupAfterBootin classRIBean<T>
-
isSpecializing
public boolean isSpecializing()- Overrides:
isSpecializingin classAbstractBean<T,Field>
-
toString
- Overrides:
toStringin classCommonBean<T>
-
isProxyable
public boolean isProxyable()- Specified by:
isProxyablein classRIBean<T>
-
getSpecializedBeans
- Overrides:
getSpecializedBeansin classAbstractBean<T,Field>
-