Package org.chenile.filewatch.init
Class FileWatchSubscribersInitializer
java.lang.Object
org.chenile.filewatch.init.FileWatchSubscribersInitializer
Runs after all the file watches and services are registered in Chenile.
It goes through all services and registers the operations to the subscribed file watchers.
This will enable Chenile to trigger all the subscribers upon the receipt of a file watch.
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescription(package private) ChenileConfiguration
(package private) FileWatchBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
private void
registerSubscriber
(ChenileServiceDefinition s, OperationDefinition operationDefinition, String fileWatchId)
-
Field Details
-
chenileConfiguration
-
fileWatchBuilder
-
-
Constructor Details
-
FileWatchSubscribersInitializer
public FileWatchSubscribersInitializer()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init() throws Exception- Throws:
Exception
-
registerSubscriber
private void registerSubscriber(ChenileServiceDefinition s, OperationDefinition operationDefinition, String fileWatchId)
-