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

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

There is a newer version: 7.6.2
Show newest version
package org.javers.core.graph;

import org.javers.common.collections.Lists;
import org.javers.core.pico.InstantiatingModule;
import org.picocontainer.MutablePicoContainer;

import java.util.Collection;

/**
 * @author bartosz.walacik
 */
public class GraphFactoryModule extends InstantiatingModule {
	
    private Class objectHasherImplementation;

    public GraphFactoryModule(MutablePicoContainer container, Class objectHasherImplementation) {
        super(container);
        this.objectHasherImplementation = objectHasherImplementation;
    }

    @Override
    protected Collection getImplementations() {
        return (Collection) Lists.asList(
               LiveCdoFactory.class,
               CollectionsCdoFactory.class,
               LiveGraphFactory.class,
               objectHasherImplementation,
               ObjectGraphBuilder.class,
               ObjectAccessHookDoNothingImpl.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy