Package org.jboss.weld.bean.builtin.ee
Class StaticEEResourceProducerField<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>
-
- org.jboss.weld.bean.builtin.ee.StaticEEResourceProducerField<X,T>
-
- Type Parameters:
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>
public class StaticEEResourceProducerField<X,T> extends EEResourceProducerField<X,T>
A resource producer field that is static (not injected).- Author:
- Jozef Hartinger
-
-
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
StaticEEResourceProducerField(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
Creates an instance of the beanprotected ResourceInjection<T>
getResourceInjection(EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, BeanManagerImpl manager)
static <X,T>
StaticEEResourceProducerField<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)
-
Methods inherited from class org.jboss.weld.bean.builtin.ee.EEResourceProducerField
checkEEResource, internalInitialize, isEEResourceProducerField, isPassivationCapableBean, toString
-
Methods inherited from class org.jboss.weld.bean.ProducerField
cleanupAfterBoot, getAnnotated, getEnhancedAnnotated, getSpecializedBeans, isProxyable, isSpecializing
-
Methods inherited from class org.jboss.weld.bean.AbstractProducerBean
checkReturnValue, checkType, destroy, getBeanClass, getDeclaringBean, getInjectionPoints, initType, 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
-
StaticEEResourceProducerField
protected StaticEEResourceProducerField(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 Detail
-
of
public static <X,T> StaticEEResourceProducerField<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)
-
getResourceInjection
protected ResourceInjection<T> getResourceInjection(EnhancedAnnotatedField<T,? super X> field, AbstractClassBean<X> declaringBean, BeanManagerImpl manager)
-
create
public T create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
Description copied from class:AbstractProducerBean
Creates an instance of the bean- Specified by:
create
in interfacejakarta.enterprise.context.spi.Contextual<X>
- Overrides:
create
in classEEResourceProducerField<X,T>
-
-