Class MultipleAutoServiceRegistration

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.cloud.client.serviceregistry.AutoServiceRegistration, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>

    public class MultipleAutoServiceRegistration
    extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
    AutoServiceRegistration for the multiple service registration
    Since:
    1.0.0
    Author:
    韩超, Mercy
    See Also:
    AutoServiceRegistration, MultipleRegistration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getConfiguration()  
      protected MultipleRegistration getManagementRegistration()  
      protected MultipleRegistration getRegistration()  
      protected boolean isEnabled()  
      • Methods inherited from class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration

        bind, deregister, deregisterManagement, destroy, getAppName, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, getServiceRegistry, isAutoStartup, isRunning, onApplicationEvent, register, registerManagement, setApplicationContext, shouldRegisterManagement, start, stop
      • Methods inherited from class java.lang.Object

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

      • MultipleAutoServiceRegistration

        public MultipleAutoServiceRegistration​(MultipleRegistration multipleRegistration,
                                               org.springframework.cloud.client.serviceregistry.ServiceRegistry<MultipleRegistration> serviceRegistry,
                                               org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties)
    • Method Detail

      • getConfiguration

        protected java.lang.Object getConfiguration()
        Specified by:
        getConfiguration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
      • isEnabled

        protected boolean isEnabled()
        Specified by:
        isEnabled in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
      • getRegistration

        protected MultipleRegistration getRegistration()
        Specified by:
        getRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
      • getManagementRegistration

        protected MultipleRegistration getManagementRegistration()
        Specified by:
        getManagementRegistration in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>