Package org.jboss.weld.bean.builtin.ee
Class EEResourceProducerField<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>
org.jboss.weld.bean.builtin.ee.EEResourceProducerField<X,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:
StaticEEResourceProducerField
- Author:
- pmuir
-
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
ConstructorsModifierConstructorDescriptionprotectedEEResourceProducerField(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) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates an instance of the beanvoidinternalInitialize(BeanDeployerEnvironment environment) Initializes the bean and its metadatastatic booleanisEEResourceProducerField(BeanManagerImpl beanManager, jakarta.enterprise.inject.spi.AnnotatedField<?> field) booleanstatic <X,T> EEResourceProducerField<X, T> of(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) Creates an EE resource producer fieldtoString()Methods inherited from class org.jboss.weld.bean.ProducerField
cleanupAfterBoot, getAnnotated, getEnhancedAnnotated, getSpecializedBeans, isProxyable, isSpecializingMethods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, getPriority, initType, 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
-
EEResourceProducerField
protected EEResourceProducerField(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)
-
-
Method Details
-
of
public static <X,T> EEResourceProducerField<X,T> of(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) Creates an EE resource producer field- Parameters:
field- The underlying method abstractiondeclaringBean- The declaring bean abstractionmanager- the current manager- Returns:
- A producer field
-
isEEResourceProducerField
public static boolean isEEResourceProducerField(BeanManagerImpl beanManager, jakarta.enterprise.inject.spi.AnnotatedField<?> field) - Parameters:
beanManager-field-- Returns:
trueif the given field is annotated with an EE resource annotation,falseotherwise
-
internalInitialize
Description copied from class:AbstractProducerBeanInitializes the bean and its metadata- Overrides:
internalInitializein classAbstractProducerBean<X,T, Field>
-
checkEEResource
protected void checkEEResource() -
create
Description copied from class:AbstractProducerBeanCreates an instance of the bean -
isPassivationCapableBean
public boolean isPassivationCapableBean()- Overrides:
isPassivationCapableBeanin classAbstractProducerBean<X,T, Field>
-
toString
- Overrides:
toStringin classProducerField<X,T>
-