Class SimpleAutoServiceRegistration

  • 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 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 
      Modifier Constructor Description
      protected 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getConfiguration()  
      protected org.springframework.cloud.client.serviceregistry.Registration getManagementRegistration()  
      protected org.springframework.cloud.client.serviceregistry.Registration 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

      • SimpleAutoServiceRegistration

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

      • getConfiguration

        protected java.lang.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>