Class MethodProducerFactory<X>

  • All Implemented Interfaces:
    javax.enterprise.inject.spi.ProducerFactory<X>

    public class MethodProducerFactory<X>
    extends AbstractProducerFactory<X>
    • Constructor Detail

      • MethodProducerFactory

        protected MethodProducerFactory​(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method,
                                        javax.enterprise.inject.spi.Bean<X> declaringBean,
                                        BeanManagerImpl manager)
    • Method Detail

      • createProducer

        public <T> javax.enterprise.inject.spi.Producer<T> createProducer​(javax.enterprise.inject.spi.Bean<X> declaringBean,
                                                                          javax.enterprise.inject.spi.Bean<T> bean,
                                                                          DisposalMethod<X,​T> disposalMethod)
        Producers returned from this method are not validated. This is an optimization for ProducerMethod whose injection points are validated anyway. Internal use only.
        Specified by:
        createProducer in class AbstractProducerFactory<X>