org.springframework.amqp.rabbit.config
Class AbstractRabbitConfiguration
java.lang.Object
org.springframework.amqp.config.AbstractAmqpConfiguration
org.springframework.amqp.rabbit.config.AbstractRabbitConfiguration
@Configuration
public abstract class AbstractRabbitConfiguration
- extends AbstractAmqpConfiguration
Abstract base class for code based configuration of Spring managed Rabbit based broker infrastructure,
i.e. Queues, Exchanges, Bindings.
Subclasses are required to provide an implementation of rabbitTemplate from which the the bean
'amqpAdmin' will be created.
- Author:
- Mark Pollack, Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRabbitConfiguration
public AbstractRabbitConfiguration()
rabbitTemplate
@Bean
public abstract RabbitTemplate rabbitTemplate()
- Create a bean definition for RabbitTemplate. Since there are several properties
one may want to set after creating a RabbitTemplate from a ConnectionFactory, this
abstract method is provided to allow for that flexibility as compared to
automatically creating a RabbitTemplate by specifying a ConnectionFactory.
amqpAdmin
@Bean
public AmqpAdmin amqpAdmin()
- Specified by:
amqpAdmin
in class AbstractAmqpConfiguration
Copyright © 2011. All Rights Reserved.