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:
javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<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(javax.enterprise.inject.spi.BeanAttributes<T> attributes, Class<X> beanClass, javax.enterprise.inject.spi.ProducerFactory<X> factory, BeanManagerImpl manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate(javax.enterprise.context.spi.CreationalContext<T> creationalContext)voiddestroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)protected javax.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, isNullable, setAttributes, toString, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
-
-
-
-
Constructor Detail
-
SyntheticProducerBean
protected SyntheticProducerBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes, Class<X> beanClass, javax.enterprise.inject.spi.ProducerFactory<X> factory, BeanManagerImpl manager)
-
-
Method Detail
-
destroy
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
-
getProducer
protected javax.enterprise.inject.spi.Producer<T> getProducer()
- Specified by:
getProducerin classAbstractSyntheticBean<T>
-
-