@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 |
amqpMessageConverterWithEventSerializer(Serializer eventSerializer,
RoutingKeyResolver routingKeyResolver) |
AMQPMessageConverter |
amqpMessageConverterWithGenericSerializer(Serializer serializer,
RoutingKeyResolver routingKeyResolver) |
RoutingKeyResolver |
routingKeyResolver() |
@ConditionalOnMissingBean @Bean public RoutingKeyResolver routingKeyResolver()
@ConditionalOnMissingBean @ConditionalOnSingleCandidate(value=Serializer.class) @ConditionalOnQualifiedBean(beanClass=Serializer.class, qualifier="eventSerializer") @Bean(value="amqpMessageConverter") public AMQPMessageConverter amqpMessageConverterWithEventSerializer(@Qualifier(value="eventSerializer") Serializer eventSerializer, RoutingKeyResolver routingKeyResolver)
@ConditionalOnMissingBean @ConditionalOnSingleCandidate(value=Serializer.class) @ConditionalOnMissingQualifiedBean(beanClass=Serializer.class, qualifier="eventSerializer") @Bean(value="amqpMessageConverter") public AMQPMessageConverter amqpMessageConverterWithGenericSerializer(Serializer serializer, 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–2017. All rights reserved.