Is it possible to have a custom EventHandlerInterceptor that is called as part of the interceptor chain just before the EventSourcingHandler of an aggregate is called? Similar to how @CommandHandlerInterceptor works on aggregates.
I want the handler to be called when I do an AggregateLifecycle.apply(event) from inside the aggregate and when the aggregate is loaded from the eventstore. The handler would to its stuff and then call interceptorchan.proceed().
The reason for having such an interceptor is to move common logic from each @EventSourcingHandler method in the aggregate to a central location. Thus ensuring that the code is always executed and not left out by accident when a new @EventSourcingHandler is added to the aggregate.