@Configuration @ConditionalOnProperty(value="axon.distributed.enabled") @ConditionalOnClass(name={"org.axonframework.springcloud.commandhandling.SpringCloudCommandRouter","org.axonframework.springcloud.commandhandling.SpringCloudHttpBackupCommandRouter","org.axonframework.springcloud.commandhandling.SpringHttpCommandBusConnector","org.springframework.cloud.client.discovery.DiscoveryClient","org.springframework.web.client.RestTemplate"}) public class SpringCloudAutoConfiguration extends Object
Constructor and Description |
---|
SpringCloudAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.client.RestTemplate |
restTemplate() |
CommandRouter |
springCloudCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient,
RoutingStrategy routingStrategy) |
CommandRouter |
springCloudHttpBackupCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient,
org.springframework.web.client.RestTemplate restTemplate,
RoutingStrategy routingStrategy) |
CommandBusConnector |
springHttpCommandBusConnector(CommandBus localSegment,
org.springframework.web.client.RestTemplate restTemplate,
Serializer serializer) |
@Bean @Primary @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.cloud.client.discovery.DiscoveryClient.class) @ConditionalOnProperty(value="axon.distributed.spring-cloud.fallback-to-http-get", matchIfMissing=true) public CommandRouter springCloudHttpBackupCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient, org.springframework.web.client.RestTemplate restTemplate, RoutingStrategy routingStrategy)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.cloud.client.discovery.DiscoveryClient.class) public CommandRouter springCloudCommandRouter(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient, RoutingStrategy routingStrategy)
@Bean @ConditionalOnMissingBean public CommandBusConnector springHttpCommandBusConnector(@Qualifier(value="localSegment") CommandBus localSegment, org.springframework.web.client.RestTemplate restTemplate, Serializer serializer)
@Bean @ConditionalOnMissingBean public org.springframework.web.client.RestTemplate restTemplate()
Copyright © 2010–2017. All rights reserved.