@Configuration @Import(value=RabbitAutoConfiguration.RabbitConnectionFactoryCreator.class) protected static class RabbitAutoConfiguration.RabbitTemplateConfiguration extends Object
Constructor and Description |
---|
RabbitTemplateConfiguration(ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter,
RabbitProperties properties) |
Modifier and Type | Method and Description |
---|---|
org.springframework.amqp.core.AmqpAdmin |
amqpAdmin(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory) |
org.springframework.amqp.rabbit.core.RabbitTemplate |
rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory) |
public RabbitTemplateConfiguration(ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, RabbitProperties properties)
@Bean @ConditionalOnSingleCandidate(value=org.springframework.amqp.rabbit.connection.ConnectionFactory.class) @ConditionalOnMissingBean(value=org.springframework.amqp.rabbit.core.RabbitTemplate.class) public org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
@Bean @ConditionalOnSingleCandidate(value=org.springframework.amqp.rabbit.connection.ConnectionFactory.class) @ConditionalOnProperty(prefix="spring.rabbitmq", name="dynamic", matchIfMissing=true) @ConditionalOnMissingBean(value=org.springframework.amqp.core.AmqpAdmin.class) public org.springframework.amqp.core.AmqpAdmin amqpAdmin(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.