@Configuration @EnableConfigurationProperties @ConditionalOnClass(value=com.netflix.discovery.EurekaClientConfig.class) public class EurekaDiscoveryClientConfiguration extends Object implements org.springframework.context.SmartLifecycle, org.springframework.core.Ordered
Modifier and Type | Class and Description |
---|---|
protected static class |
EurekaDiscoveryClientConfiguration.DiscoveryManagerInitializerConfiguration |
protected static class |
EurekaDiscoveryClientConfiguration.EurekaHealthIndicatorConfiguration |
Constructor and Description |
---|
EurekaDiscoveryClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent> |
containerPortInitializer() |
DiscoveryClient |
discoveryClient() |
com.netflix.discovery.DiscoveryClient |
eurekaDiscoveryClient() |
int |
getOrder() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
@PreDestroy public void close()
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
@Bean @Lazy @Scope(proxyMode=TARGET_CLASS) @ConditionalOnMissingBean(value=com.netflix.discovery.DiscoveryClient.class) public com.netflix.discovery.DiscoveryClient eurekaDiscoveryClient()
@Bean public DiscoveryClient discoveryClient()
@Bean protected org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent> containerPortInitializer()
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.