Class AbstractCompletionRegisteringAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.modulith.events.support.AbstractCompletionRegisteringAdvisor
- All Implemented Interfaces:
Serializable,Advisor,PointcutAdvisor,Ordered
- Direct Known Subclasses:
CompletionRegisteringAdvisor,InTransactionCompletionRegisteringAdvisor
Base class for
Advisors taking part in the completion of event publications. Makes
sure all of them apply to the same set of methods, i.e. TransactionalEventListener annotated ones that
actually trigger an entry in the registry according to the given EventListenerMethodMetadata.- Since:
- 2.2
- Author:
- Oliver Drotbohm
-
Field Summary
Fields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCompletionRegisteringAdvisor(EventListenerMethodMetadata metadata, Advice advice) Creates a newAbstractCompletionRegisteringAdvisorfor the givenEventListenerMethodMetadataandAdvice. -
Method Summary
Modifier and TypeMethodDescription(package private) static booleanisCompletionHandled(MethodInvocation invocation) Returns whether the completion of the publication for the given invocation is taken care of by a transaction synchronization.(package private) static voidmarkCompletionHandled(ProxyMethodInvocation invocation) Marks the completion of the publication for the given invocation as taken care of by a transaction synchronization.Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.Advisor
isPerInstance
-
Constructor Details
-
AbstractCompletionRegisteringAdvisor
AbstractCompletionRegisteringAdvisor(EventListenerMethodMetadata metadata, Advice advice) Creates a newAbstractCompletionRegisteringAdvisorfor the givenEventListenerMethodMetadataandAdvice.- Parameters:
metadata- must not be null.advice- must not be null.
-
-
Method Details
-
getPointcut
-
getAdvice
-
isCompletionHandled
Returns whether the completion of the publication for the given invocation is taken care of by a transaction synchronization.- Parameters:
invocation- must not be null.
-
markCompletionHandled
Marks the completion of the publication for the given invocation as taken care of by a transaction synchronization.- Parameters:
invocation- must not be null.- See Also:
-