org.javers.core.graph.LazyCdoWrapper 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 org.javers.core.metamodel.object.GlobalId;
import org.javers.core.metamodel.type.ManagedType;
import java.util.function.Supplier;
class LazyCdoWrapper extends LiveCdo {
private final Supplier cdoSupplier;
LazyCdoWrapper(Supplier cdoSupplier, GlobalId globalId, ManagedType managedType) {
super(globalId, managedType);
this.cdoSupplier = cdoSupplier;
}
@Override
Object wrappedCdo() {
return cdoSupplier.get();
}
}