@Configuration(proxyBeanMethods=false)
@Import(value={DubboServiceRegistrationEventPublishingAspect.class,DubboBootstrapStartCommandLineRunner.class})
@ConditionalOnProperty(value="spring.cloud.service-registry.auto-registration.enabled",
matchIfMissing=true)
@AutoConfigureAfter(name={"org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration","org.springframework.cloud.consul.serviceregistry.ConsulAutoServiceRegistrationAutoConfiguration","org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationAutoConfiguration"},
value=DubboMetadataAutoConfiguration.class)
public class DubboServiceRegistrationAutoConfiguration
extends Object
Configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUL_AUTO_SERVICE_AUTO_CONFIGURATION_CLASS_NAME
ConsulAutoServiceRegistrationAutoConfiguration.
|
static String |
CONSUL_AUTO_SERVICE_AUTO_REGISTRATION_CLASS_NAME
ConsulAutoRegistration.
|
static String |
EUREKA_CLIENT_AUTO_CONFIGURATION_CLASS_NAME
EurekaClientAutoConfiguration.
|
static String |
ZOOKEEPER_AUTO_SERVICE_AUTO_CONFIGURATION_CLASS_NAME
ZookeeperAutoServiceRegistrationAutoConfiguration.
|
| Constructor and Description |
|---|
DubboServiceRegistrationAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.dubbo.config.RegistryConfig |
defaultSpringCloudRegistryConfig() |
void |
onDubboBootstrapStarted(DubboBootstrapStartedEvent event) |
void |
onServiceInstancePreDeregistered(ServiceInstancePreDeregisteredEvent event) |
void |
onServiceInstancePreRegistered(ServiceInstancePreRegisteredEvent event) |
public static final String EUREKA_CLIENT_AUTO_CONFIGURATION_CLASS_NAME
public static final String CONSUL_AUTO_SERVICE_AUTO_CONFIGURATION_CLASS_NAME
public static final String CONSUL_AUTO_SERVICE_AUTO_REGISTRATION_CLASS_NAME
public static final String ZOOKEEPER_AUTO_SERVICE_AUTO_CONFIGURATION_CLASS_NAME
public DubboServiceRegistrationAutoConfiguration()
@Bean @Conditional(value=MissingSpringCloudRegistryConfigPropertyCondition.class) public org.apache.dubbo.config.RegistryConfig defaultSpringCloudRegistryConfig()
@EventListener(value=DubboBootstrapStartedEvent.class) public void onDubboBootstrapStarted(DubboBootstrapStartedEvent event)
@EventListener(value=ServiceInstancePreRegisteredEvent.class) public void onServiceInstancePreRegistered(ServiceInstancePreRegisteredEvent event)
@EventListener(value=ServiceInstancePreDeregisteredEvent.class) public void onServiceInstancePreDeregistered(ServiceInstancePreDeregisteredEvent event)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.