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

abstract class AbstractCompletionRegisteringAdvisor extends AbstractPointcutAdvisor
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
  • Constructor Details

  • Method Details

    • getPointcut

      public Pointcut getPointcut()
    • getAdvice

      public Advice getAdvice()
    • isCompletionHandled

      static boolean isCompletionHandled(MethodInvocation invocation)
      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

      static void markCompletionHandled(ProxyMethodInvocation invocation)
      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: