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
ConstructorsConstructorDescriptionSimpleAutoServiceRegistration(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 TypeMethodDescriptionprotected Objectprotected org.springframework.cloud.client.serviceregistry.Registrationprotected org.springframework.cloud.client.serviceregistry.Registrationprotected booleanMethods 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, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- 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>
-