org.javers.spring.auditable.aspect.AuditChangeHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-spring Show documentation
Show all versions of javers-spring Show documentation
JaVers object auditing and diff framework
package org.javers.spring.auditable.aspect;
import org.springframework.data.repository.core.RepositoryMetadata;
/**
* Created by gessnerfl on 22.02.15.
*/
interface AuditChangeHandler {
/**
* Creates a new audit log entry for the given domainObject. The handler is executed after
* the live data was created, updated or deleted by calling the corresponding method (save
* or delete) on the spring data repository implementation of the given domainObject.
*
* @param repositoryMetadata the metadata of the spring data repository
* @param domainObject the domain object
*/
void handle(RepositoryMetadata repositoryMetadata, Object domainObject);
}