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:
Contextual<T>,Bean<T>,BeanAttributes<T>,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 protectedProducerField(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 voidcleanupAfterBoot()This method is called after the container is started allowing the bean to release any resources that are only required at boot timeAnnotatedField<? super X>getAnnotated()Returns the annotated item the bean representsEnhancedAnnotatedField<T,? super X>getEnhancedAnnotated()Gets the annotated item representing the fieldSet<AbstractBean<?,?>>getSpecializedBeans()booleanisProxyable()booleanisSpecializing()static <X,T>
ProducerField<X,T>of(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 fieldStringtoString()-
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 javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
ProducerField
protected ProducerField(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(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 AnnotatedField<? super X> getAnnotated()
Description copied from class:AbstractBeanReturns the annotated item the bean represents- Specified by:
getAnnotatedin classAbstractProducerBean<X,T,Field>- Returns:
- The annotated item
-
getEnhancedAnnotated
public EnhancedAnnotatedField<T,? super X> 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
public String toString()
- Overrides:
toStringin classCommonBean<T>
-
isProxyable
public boolean isProxyable()
- Specified by:
isProxyablein classRIBean<T>
-
getSpecializedBeans
public Set<AbstractBean<?,?>> getSpecializedBeans()
- Overrides:
getSpecializedBeansin classAbstractBean<T,Field>
-
-