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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent) void
void
setServer
(org.springframework.boot.autoconfigure.web.ServerProperties server) simpleDiscoveryClient
(SimpleDiscoveryProperties properties) simpleDiscoveryProperties
(String serviceId)
-
Constructor Details
-
SimpleDiscoveryClientAutoConfiguration
public SimpleDiscoveryClientAutoConfiguration()
-
-
Method Details
-
setServer
@Autowired(required=false) public void setServer(org.springframework.boot.autoconfigure.web.ServerProperties server) -
setInet
-
simpleDiscoveryProperties
@Bean @ConditionalOnMissingBean public SimpleDiscoveryProperties simpleDiscoveryProperties(@Value("${spring.application.name:application}") String serviceId) -
simpleDiscoveryClient
-
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>
-