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:
-
AutoServiceRegistrationMultipleRegistration
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleAutoServiceRegistration(MultipleRegistration multipleRegistration, org.springframework.cloud.client.serviceregistry.ServiceRegistry<MultipleRegistration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectprotected MultipleRegistrationprotected MultipleRegistrationprotected 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
-
MultipleAutoServiceRegistration
public MultipleAutoServiceRegistration(MultipleRegistration multipleRegistration, org.springframework.cloud.client.serviceregistry.ServiceRegistry<MultipleRegistration> serviceRegistry, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties properties)
-
-
Method Details
-
getConfiguration
- Specified by:
getConfigurationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
-
isEnabled
protected boolean isEnabled()- Specified by:
isEnabledin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
-
getRegistration
- Specified by:
getRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
-
getManagementRegistration
- Specified by:
getManagementRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<MultipleRegistration>
-