OpenRewrite allows registering a ParsingEventListener with the ExecutionContext.
The listener will then be informed about parsed resources.
A RewriteParsingEventListenerAdapter implements the ParsingEventListener and publishes ParsedResourceEvent as Spring application events copying the information provided to the listener.
This has been done.
OpenRewrite allows registering a
ParsingEventListener
with theExecutionContext
. The listener will then be informed about parsed resources. ARewriteParsingEventListenerAdapter
implements theParsingEventListener
and publishesParsedResourceEvent
as Spring application events copying the information provided to the listener.See RewriteProjectParserIntegrationTest
Events
ParsedResourceEvent
- published for every parsed resource (when published by OpenRewrite)StartedParsingProjectEvent
- published when the parsing startsFinishedParsingProjectEvent
- published when the parsing finished successfullySpring
@EventListsner
can be used to listen to these events