Class MultipleAutoServiceRegistration

java.lang.Object
org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
io.microsphere.spring.cloud.client.service.registry.MultipleAutoServiceRegistration
All Implemented Interfaces:
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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    MultipleAutoServiceRegistration(MultipleRegistration multipleRegistration, org.springframework.cloud.client.serviceregistry.ServiceRegistry<MultipleRegistration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
     
     
     
    protected boolean
     

    Methods inherited from class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration

    addRegistrationLifecycle, addRegistrationManagementLifecycle, 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

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution
  • Constructor Details

    • MultipleAutoServiceRegistration

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

    • getConfiguration

      protected 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>