Interface AuditedMethodExecutionContext

All Known Implementing Classes:
AuditedMethodExecutionContext.JoinPointAuditingExecutionContext

public interface AuditedMethodExecutionContext
An interface used by AdvancedCommitPropertiesProvider. This interface encapsulates the execution context of an audited method called by the JaversSpringDataAuditable aspect.

The execution context includes:
Since:
7.5
See Also:
  • Method Details

    • getTargetClass

      Class<?> getTargetClass()
      Gets an audited class. Most likely a CrudRepository.
    • getTargetMethod

      Method getTargetMethod()
      Gets an audited method of a CrudRepository.
    • getJoinPoint

      org.aspectj.lang.JoinPoint getJoinPoint()
      An underlying AspectJ JoinPoint
    • getTargetMethodArgs

      Object[] getTargetMethodArgs()
      Gets arguments passed to an audited method.
    • getTargetClassName

      default String getTargetClassName()
      Gets the fully qualified name of a target class.
    • getTargetMethodName

      default String getTargetMethodName()
      Gets the name of an audited method.
    • getTargetMethodParameters

      default Parameter[] getTargetMethodParameters()
      Gets parameters of an audited method.
    • from

      static AuditedMethodExecutionContext from(org.aspectj.lang.JoinPoint jp)
      Creates a new instance of the default implementation of AuditedMethodExecutionContext from a given JoinPoint.
      Throws:
      IllegalArgumentException - if the join point is null.