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

org.javers.repository.jdbc.pico.JdbcJaversModule Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package org.javers.repository.jdbc.pico;

import org.javers.common.pico.JaversModule;
import org.javers.core.Javers;
import org.javers.repository.jdbc.JdbcDiffRepository;
import org.javers.repository.jdbc.schema.FixedSchemaFactory;
import org.javers.repository.jdbc.schema.JaversSchemaManager;
import org.polyjdbc.core.query.QueryRunnerFactory;
import org.polyjdbc.core.transaction.DataSourceTransactionManager;

import java.util.Arrays;
import java.util.Collection;

/**
 * Provides Pico beans setup for jdbc repositories
 *
 * @author bartosz walacik
 */
public class JdbcJaversModule implements JaversModule{
    private static Class[] moduleComponents = new Class[] {JdbcDiffRepository.class,
                                                           FixedSchemaFactory.class,
                                                           JaversSchemaManager.class,
                                                           DataSourceTransactionManager.class,
                                                           QueryRunnerFactory.class};

    @Override
    public Collection getModuleComponents() {
        return Arrays.asList(moduleComponents);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy