Package org.chenile.core.init
Class ChenileEventSubscribersInitializer
java.lang.Object
org.chenile.core.init.ChenileEventSubscribersInitializer
Runs after all the events and services are registered in Chenile.
It goes through all services and registers the operations to the subscribed events.
This will enable Chenile to trigger all the subscribers upon the receipt of an event.
- Author:
- Raja Shankar Kolluru
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
private void
registerSubscriber
(ChenileServiceDefinition s, OperationDefinition operationDefinition, String eventId)
-
Field Details
-
chenileConfiguration
-
-
Constructor Details
-
ChenileEventSubscribersInitializer
public ChenileEventSubscribersInitializer()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) @Order(20) public void init() -
registerSubscriber
private void registerSubscriber(ChenileServiceDefinition s, OperationDefinition operationDefinition, String eventId)
-