Class SimpleDiscoveryClientAutoConfiguration
- java.lang.Object
-
- org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(CommonsClientAutoConfiguration.class) public class SimpleDiscoveryClientAutoConfiguration extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
Spring Boot auto-configuration for simple properties-based discovery client.- Author:
- Biju Kunjummen, Charu Covindane
-
-
Constructor Summary
Constructors Constructor Description SimpleDiscoveryClientAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent)
void
setInet(InetUtils inet)
void
setServer(org.springframework.boot.autoconfigure.web.ServerProperties server)
DiscoveryClient
simpleDiscoveryClient(SimpleDiscoveryProperties properties)
SimpleDiscoveryProperties
simpleDiscoveryProperties(String serviceId)
-
-
-
Method Detail
-
setServer
@Autowired(required=false) public void setServer(org.springframework.boot.autoconfigure.web.ServerProperties server)
-
setInet
@Autowired public void setInet(InetUtils inet)
-
simpleDiscoveryProperties
@Bean @ConditionalOnMissingBean public SimpleDiscoveryProperties simpleDiscoveryProperties(@Value("${spring.application.name:application}") String serviceId)
-
simpleDiscoveryClient
@Bean @Order public DiscoveryClient simpleDiscoveryClient(SimpleDiscoveryProperties properties)
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
-
-