public class ConsulAutoServiceRegistrationListener extends Object implements org.springframework.context.event.SmartApplicationListener
Constructor and Description |
---|
ConsulAutoServiceRegistrationListener(ConsulAutoServiceRegistration autoServiceRegistration) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
boolean |
supportsSourceType(Class<?> sourceType) |
public ConsulAutoServiceRegistrationListener(ConsulAutoServiceRegistration autoServiceRegistration)
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType
in interface org.springframework.context.event.SmartApplicationListener
public boolean supportsSourceType(Class<?> sourceType)
supportsSourceType
in interface org.springframework.context.event.SmartApplicationListener
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public int getOrder()
getOrder
in interface org.springframework.context.event.SmartApplicationListener
getOrder
in interface org.springframework.core.Ordered
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.