Class 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 Detail

      • SimpleDiscoveryClientAutoConfiguration

        public SimpleDiscoveryClientAutoConfiguration()
    • 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)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>