public <X> ProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> bean) { return new MethodProducerFactory<>(method, bean, webBeansContext); }
@Override protected <P> ProducerMethodBean<T> createBean(InjectionTargetBean<P> parent, Class<T> beanClass) { AnnotatedMethod<P> annotatedMethod = (AnnotatedMethod<P>) annotatedMember; ProducerMethodBean<T> producerMethodBean = new ProducerMethodBean<>(parent, beanAttributes, beanClass, new MethodProducerFactory<>(annotatedMethod, parent, parent.getWebBeansContext())); return producerMethodBean; }