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:
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>DefaultAutoServiceRegistration- Since:
- 1.0.0
- Author:
- Mercy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleAutoServiceRegistration(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.ObjectgetConfiguration()protected org.springframework.cloud.client.serviceregistry.RegistrationgetManagementRegistration()protected org.springframework.cloud.client.serviceregistry.RegistrationgetRegistration()protected booleanisEnabled()-
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
-
-
-
-
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:
getConfigurationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
isEnabled
protected boolean isEnabled()
- Specified by:
isEnabledin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
getRegistration
protected org.springframework.cloud.client.serviceregistry.Registration getRegistration()
- Specified by:
getRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
getManagementRegistration
protected org.springframework.cloud.client.serviceregistry.Registration getManagementRegistration()
- Specified by:
getManagementRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<org.springframework.cloud.client.serviceregistry.Registration>
-
-