Class EurekaAutoServiceRegistration
java.lang.Object
org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration
- All Implemented Interfaces:
EventListener,org.springframework.cloud.client.serviceregistry.AutoServiceRegistration,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.SmartApplicationListener,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,org.springframework.core.Ordered
public class EurekaAutoServiceRegistration
extends Object
implements org.springframework.cloud.client.serviceregistry.AutoServiceRegistration, org.springframework.context.SmartLifecycle, org.springframework.core.Ordered, org.springframework.context.event.SmartApplicationListener
- Author:
- Dave Syer, Spencer Gibb, Jon Schneider, Jakub Narloch, Raiyan Raiyan
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionEurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context, EurekaServiceRegistry serviceRegistry, EurekaRegistration registration) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()intgetPhase()booleanbooleanvoidonApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event) voidonApplicationEvent(org.springframework.context.ApplicationEvent event) voidonApplicationEvent(org.springframework.context.event.ContextClosedEvent event) voidstart()voidstop()voidbooleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId, supportsSourceType
-
Constructor Details
-
EurekaAutoServiceRegistration
public EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context, EurekaServiceRegistry serviceRegistry, EurekaRegistration registration)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.context.event.SmartApplicationListener
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event) -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
-