Package org.javers.spring.auditable
Interface AuditedMethodExecutionContext
- All Known Implementing Classes:
AuditedMethodExecutionContext.JoinPointAuditingExecutionContext
public interface AuditedMethodExecutionContext
An interface used by
The execution context includes:
AdvancedCommitPropertiesProvider. This interface
encapsulates the execution context of an audited method
called by the JaversSpringDataAuditable aspect.
The execution context includes:
- An audited class —
getTargetClass() - An audited method —
getTargetMethod() - AspectJ JoinPoint:
getJoinPoint() - TargetMethodArgs:
getTargetMethodArgs()
- Since:
- 7.5
- See Also:
-
AdvancedCommitPropertiesProviderJoinPointMethod
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault implementation of theAuditedMethodExecutionContextinterface, providing the context information based on a givenJoinPoint. -
Method Summary
Modifier and TypeMethodDescriptionfrom(org.aspectj.lang.JoinPoint jp) Creates a new instance of the default implementation ofAuditedMethodExecutionContextfrom a givenJoinPoint.org.aspectj.lang.JoinPointAn underlying AspectJJoinPointClass<?>Gets an audited class.default StringGets the fully qualified name of a target class.Gets an audited method of aCrudRepository.Object[]Gets arguments passed to an audited method.default StringGets the name of an audited method.default Parameter[]Gets parameters of an audited method.
-
Method Details
-
getTargetClass
Class<?> getTargetClass()Gets an audited class. Most likely aCrudRepository. -
getTargetMethod
Method getTargetMethod()Gets an audited method of aCrudRepository. -
getJoinPoint
org.aspectj.lang.JoinPoint getJoinPoint()An underlying AspectJJoinPoint -
getTargetMethodArgs
Object[] getTargetMethodArgs()Gets arguments passed to an audited method. -
getTargetClassName
Gets the fully qualified name of a target class. -
getTargetMethodName
Gets the name of an audited method. -
getTargetMethodParameters
Gets parameters of an audited method. -
from
Creates a new instance of the default implementation ofAuditedMethodExecutionContextfrom a givenJoinPoint.- Throws:
IllegalArgumentException- if the join point is null.
-