Class ServiceRegistryInitializer
java.lang.Object
org.chenile.service.registry.configuration.ServiceRegistryInitializer
- All Implemented Interfaces:
EventListener, ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, Ordered
@Configuration
@PropertySource("classpath:${chenile.properties:chenile.properties}")
public class ServiceRegistryInitializer
extends Object
implements ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, Ordered
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ChenileConfigurationprivate Stringprivate static org.slf4j.Logger(package private) ServiceRegistryRepository(package private) ServiceRegistryCache(package private) ServiceRegistryServiceFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ApplicationListener
supportsAsyncExecution
-
Field Details
-
logger
private static org.slf4j.Logger logger -
chenileRemoteServiceRegistry
-
serviceRegistryCache
-
repository
-
serviceRegistryService
-
chenileConfiguration
-
-
Constructor Details
-
ServiceRegistryInitializer
public ServiceRegistryInitializer()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-
getOrder
-