Class MethodProducerFactory<X>

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

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

      • MethodProducerFactory

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

      • createProducer

        public <T> jakarta.enterprise.inject.spi.Producer<T> createProducer​(jakarta.enterprise.inject.spi.Bean<X> declaringBean,
                                                                            jakarta.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>