Class CompletionRegisteringBeanPostProcessor
java.lang.Object
org.springframework.modulith.events.support.CompletionRegisteringBeanPostProcessor
- All Implemented Interfaces:
BeanPostProcessor,Ordered
public class CompletionRegisteringBeanPostProcessor
extends Object
implements BeanPostProcessor, Ordered
A
BeanPostProcessor that adds an advisor completing event publications right before commit to the advisor
chain of Advised beans, directly after the TransactionInterceptor. Only beans that already carry the
CompletionRegisteringAdvisor.CompletionRegisteringMethodInterceptor are considered.- Since:
- 2.2
- Author:
- Oliver Drotbohm
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCompletionRegisteringBeanPostProcessor(Supplier<EventPublicationRegistry> registry, EventListenerMethodMetadata metadata) Creates a newCompletionRegisteringBeanPostProcessorfor the given (lazily resolved)EventPublicationRegistryandEventListenerMethodMetadata. -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()postProcessAfterInitialization(Object bean, String beanName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
CompletionRegisteringBeanPostProcessor
public CompletionRegisteringBeanPostProcessor(Supplier<EventPublicationRegistry> registry, EventListenerMethodMetadata metadata) Creates a newCompletionRegisteringBeanPostProcessorfor the given (lazily resolved)EventPublicationRegistryandEventListenerMethodMetadata.- Parameters:
registry- must not be null.metadata- must not be null.
-
-
Method Details
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor
-
getOrder
public int getOrder()
-