Class SimpleAutoServiceRegistration

java.lang.Object
org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
io.microsphere.spring.cloud.client.service.registry.SimpleAutoServiceRegistration
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 SimpleAutoServiceRegistration extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
Default AutoServiceRegistration
Since:
1.0.0
Author:
Mercy
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties, org.springframework.cloud.client.serviceregistry.Registration registration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
     
    protected org.springframework.cloud.client.serviceregistry.Registration
     
    protected org.springframework.cloud.client.serviceregistry.Registration
     
    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

    • SimpleAutoServiceRegistration

      public SimpleAutoServiceRegistration(org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties, org.springframework.cloud.client.serviceregistry.Registration registration)
  • Method Details

    • getConfiguration

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

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

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

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