@ConditionalOnProperty(value="spring.cloud.config.discovery.enabled",
matchIfMissing=false)
@Configuration(proxyBeanMethods=false)
@Import(value=org.springframework.cloud.commons.util.UtilAutoConfiguration.class)
@EnableDiscoveryClient
public class DiscoveryClientConfigServiceBootstrapConfiguration
extends Object
implements org.springframework.context.event.SmartApplicationListener
| Constructor and Description |
|---|
DiscoveryClientConfigServiceBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConfigServerInstanceProvider |
configServerInstanceProvider(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient) |
void |
heartbeat(org.springframework.cloud.client.discovery.event.HeartbeatEvent event) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
startup(org.springframework.context.event.ContextRefreshedEvent event) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
public DiscoveryClientConfigServiceBootstrapConfiguration()
@Bean public ConfigServerInstanceProvider configServerInstanceProvider(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient)
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType in interface org.springframework.context.event.SmartApplicationListenerpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>public void startup(org.springframework.context.event.ContextRefreshedEvent event)
public void heartbeat(org.springframework.cloud.client.discovery.event.HeartbeatEvent event)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.