org.javers.core.graph.ObjectAccessHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javers-core Show documentation
Show all versions of javers-core Show documentation
JaVers - object auditing and diff framework for Java
package org.javers.core.graph;
import java.util.Optional;
/**
* Object access hook
*
*
* Used for accessing object before commit.
* i.e. to unproxy hibernate object before comparison
*
* Needs to be idempotent because JaVers could call it more than once during diff.
*
*/
public interface ObjectAccessHook {
/** Return object wrapper, possibly without proxy initialization */
Optional> createAccessor(final T entity);
}