Package org.jboss.weld.bean
Class SyntheticProducerBean<T,X>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.AbstractSyntheticBean<T>
-
- org.jboss.weld.bean.SyntheticProducerBean<T,X>
-
- Type Parameters:
T-
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,WeldBean<T>
public class SyntheticProducerBean<T,X> extends AbstractSyntheticBean<T>
Represents a producer field or producer method created based on extension-providedProducerimplementation.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSyntheticProducerBean(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, Class<X> beanClass, jakarta.enterprise.inject.spi.ProducerFactory<X> factory, BeanManagerImpl manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)voiddestroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)protected jakarta.enterprise.inject.spi.Producer<T>getProducer()-
Methods inherited from class org.jboss.weld.bean.AbstractSyntheticBean
getBeanClass, getInjectionPoints
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, setAttributes, toString, 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
-
SyntheticProducerBean
protected SyntheticProducerBean(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, Class<X> beanClass, jakarta.enterprise.inject.spi.ProducerFactory<X> factory, BeanManagerImpl manager)
-
-
Method Detail
-
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
-
getProducer
protected jakarta.enterprise.inject.spi.Producer<T> getProducer()
- Specified by:
getProducerin classAbstractSyntheticBean<T>
-
-