AmqpPollableMessageChannelSpec(AmqpChannelFactoryBean amqpChannelFactoryBean, ConnectionFactory connectionFactory) { this.amqpChannelFactoryBean = amqpChannelFactoryBean; this.amqpChannelFactoryBean.setConnectionFactory(connectionFactory); this.amqpChannelFactoryBean.setSingleton(false); this.amqpChannelFactoryBean.setPubSub(false); /* We need this artificial BeanFactory to overcome AmqpChannelFactoryBean initialization. The real BeanFactory will be applied later for the target AbstractAmqpChannel instance. */ this.amqpChannelFactoryBean.setBeanFactory(new DefaultListableBeanFactory()); }
AmqpPollableMessageChannelSpec(AmqpChannelFactoryBean amqpChannelFactoryBean, ConnectionFactory connectionFactory) { this.amqpChannelFactoryBean = amqpChannelFactoryBean; this.amqpChannelFactoryBean.setConnectionFactory(connectionFactory); this.amqpChannelFactoryBean.setSingleton(false); this.amqpChannelFactoryBean.setPubSub(false); /* We need this artificial BeanFactory to overcome AmqpChannelFactoryBean initialization. The real BeanFactory will be applied later for the target AbstractAmqpChannel instance. */ this.amqpChannelFactoryBean.setBeanFactory(new DefaultListableBeanFactory()); }
AmqpPollableMessageChannelSpec(AmqpChannelFactoryBean amqpChannelFactoryBean, ConnectionFactory connectionFactory) { this.amqpChannelFactoryBean = amqpChannelFactoryBean; this.amqpChannelFactoryBean.setConnectionFactory(connectionFactory); this.amqpChannelFactoryBean.setSingleton(false); this.amqpChannelFactoryBean.setPubSub(false); /* We need this artificial BeanFactory to overcome AmqpChannelFactoryBean initialization. The real BeanFactory will be applied later for the target AbstractAmqpChannel instance. */ this.amqpChannelFactoryBean.setBeanFactory(new DefaultListableBeanFactory()); }
AmqpPollableMessageChannelSpec(AmqpChannelFactoryBean amqpChannelFactoryBean, ConnectionFactory connectionFactory) { this.amqpChannelFactoryBean = amqpChannelFactoryBean; this.amqpChannelFactoryBean.setConnectionFactory(connectionFactory); this.amqpChannelFactoryBean.setSingleton(false); this.amqpChannelFactoryBean.setPubSub(false); /* We need this artificial BeanFactory to overcome AmqpChannelFactoryBean initialization. The real BeanFactory will be applied later for the target AbstractAmqpChannel instance. */ this.amqpChannelFactoryBean.setBeanFactory(new DefaultListableBeanFactory()); }