Class SimpleAutoServiceRegistrationAutoConfiguration


  • @Configuration(proxyBeanMethods=false)
    @ConditionalOnProperty(name="microsphere.spring.cloud.service-registry.auto-registration.simple.enabled")
    @ConditionalOnAutoServiceRegistrationEnabled
    @AutoConfigureBefore(org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationAutoConfiguration.class)
    @AutoConfigureAfter({org.springframework.cloud.commons.util.UtilAutoConfiguration.class,org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationConfiguration.class,org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration.class})
    @Import(SimpleAutoServiceRegistration.class)
    public class SimpleAutoServiceRegistrationAutoConfiguration
    extends java.lang.Object
    Auto-Configuration class for SimpleAutoServiceRegistration
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    SimpleAutoServiceRegistration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENABLED_PROPERTY_NAME
      The property name : "microsphere.spring.cloud.service-registry.auto-registration.simple.enabled"
      static java.lang.String PROPERTY_NAME_PREFIX
      The property name prefix : "microsphere.spring.cloud.service-registry.auto-registration.simple."
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.cloud.client.serviceregistry.Registration registration​(java.lang.String applicationName, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, org.springframework.cloud.commons.util.InetUtils inetUtils)  
      org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PROPERTY_NAME_PREFIX

        public static final java.lang.String PROPERTY_NAME_PREFIX
        The property name prefix : "microsphere.spring.cloud.service-registry.auto-registration.simple."
        See Also:
        Constant Field Values
      • ENABLED_PROPERTY_NAME

        @ConfigurationProperty(type=boolean.class,
                               source="application")
        public static final java.lang.String ENABLED_PROPERTY_NAME
        The property name : "microsphere.spring.cloud.service-registry.auto-registration.simple.enabled"
        See Also:
        Constant Field Values
    • Constructor Detail

      • SimpleAutoServiceRegistrationAutoConfiguration

        public SimpleAutoServiceRegistrationAutoConfiguration()
    • Method Detail

      • registration

        @Bean
        public org.springframework.cloud.client.serviceregistry.Registration registration​(@Value("${spring.application.name:default}")
                                                                                          java.lang.String applicationName,
                                                                                          org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
                                                                                          org.springframework.cloud.commons.util.InetUtils inetUtils)
      • serviceRegistry

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry()