Class CompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor
java.lang.Object
org.springframework.modulith.events.support.CompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
,Ordered
- Enclosing class:
- CompletionRegisteringAdvisor
static class CompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor
extends Object
implements MethodInterceptor, Ordered
MethodInterceptor
to trigger the completion of an event publication after a transaction event listener
method has been completed successfully.- Author:
- Oliver Drotbohm
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionCreates a newCompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor
for the givenEventPublicationRegistry
. -
Method Summary
-
Constructor Details
-
CompletionRegisteringMethodInterceptor
CompletionRegisteringMethodInterceptor(Supplier<EventPublicationRegistry> registry) Creates a newCompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor
for the givenEventPublicationRegistry
.- Parameters:
registry
- must not be null.
-
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceMethodInterceptor
- Throws:
Throwable
-
getOrder
public int getOrder()
-