@Configuration @ConditionalOnClass(value=SpringAMQPPublisher.class) @EnableConfigurationProperties(value=AMQPProperties.class) public class AMQPAutoConfiguration extends Object
Constructor and Description |
---|
AMQPAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
SpringAMQPPublisher |
amqpBridge(EventBus eventBus,
org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory,
AMQPMessageConverter amqpMessageConverter) |
AMQPMessageConverter |
amqpMessageConverter(Serializer eventSerializer,
RoutingKeyResolver routingKeyResolver) |
RoutingKeyResolver |
routingKeyResolver() |
@ConditionalOnMissingBean @Bean public RoutingKeyResolver routingKeyResolver()
@ConditionalOnMissingBean @Bean public AMQPMessageConverter amqpMessageConverter(@Qualifier(value="eventSerializer") Serializer eventSerializer, RoutingKeyResolver routingKeyResolver)
@ConditionalOnProperty(value="axon.amqp.exchange") @ConditionalOnBean(value=org.springframework.amqp.rabbit.connection.ConnectionFactory.class) @ConditionalOnMissingBean @Bean(initMethod="start", destroyMethod="shutDown") public SpringAMQPPublisher amqpBridge(EventBus eventBus, org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, AMQPMessageConverter amqpMessageConverter)
Copyright © 2010–2018. All rights reserved.