Publish an event after each recipe that made changes.
OpenRewrite collects a list of recipes that made changes in the ExecutionContext.
Why it needs to be done
Applying a recipe can take quite some time and listening to those events would allow to provide progress information to the user.
Possible Implementations
Overwrite the putMessage in RewriteExecutionContext and intercept messages unter the recipesThatMadeChanges (I think) key and publish them as Spring application event using ApplicationEventPublisher
Achieve the same using the WatchableExecutionContext.
What needs to be done
Publish an event after each recipe that made changes. OpenRewrite collects a list of recipes that made changes in the
ExecutionContext
.Why it needs to be done
Applying a recipe can take quite some time and listening to those events would allow to provide progress information to the user.
Possible Implementations
putMessage
inRewriteExecutionContext
and intercept messages unter therecipesThatMadeChanges
(I think) key and publish them as Spring application event usingApplicationEventPublisher
WatchableExecutionContext
.