All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javers.core.graph.LazyCdoWrapper Maven / Gradle / Ivy

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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy