Package org.locationtech.geogig.di

Examples of org.locationtech.geogig.di.GeogigModule


        } catch (Exception e) {
            throw Throwables.propagate(e);
        }
        Platform testPlatform = new TestPlatform(workingDirectory);
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule(),
                        new TestModule(testPlatform))).getInstance(Context.class);
    }
View Full Code Here


public class JELogOpTest extends org.locationtech.geogig.test.integration.LogOpTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

    /**
     * Creates the injector to enable xerial sqlite storage.
     */
    public static Context injector() {
        return Guice.createInjector(Modules.override(new GeogigModule()).with(
                new XerialSQLiteModule())).getInstance(Context.class);
    }
View Full Code Here

public class JERevTreeBuilderTest extends
        org.locationtech.geogig.test.integration.RevTreeBuilderTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

public class JEFindCommonAncestorTest extends
        org.locationtech.geogig.test.integration.FindCommonAncestorTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

public class JECheckSparsePathTest extends
        org.locationtech.geogig.test.integration.CheckSparsePathTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

public class JEIndexTest extends org.locationtech.geogig.test.integration.repository.IndexTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here

    @Before
    public void setUp() throws IOException {
        File envHome = tempFolder.getRoot();
        Platform testPlatform = new TestPlatform(envHome);
        Context injector = Guice.createInjector(Modules.override(new GeogigModule()).with(
                new MemoryModule(testPlatform))).getInstance(Context.class);

        fakeGeogig = new GeoGIG(injector);
        Repository fakeRepo = fakeGeogig.getOrCreateRepository();
        odb = fakeRepo.objectDatabase();
View Full Code Here

            DEFAULT_GRAPH);

    @Override
    public Context build(Hints hints) {
        return Guice.createInjector(
                Modules.override(new GeogigModule(), new CachingModule()).with(new MetricsModule(),
                        new PluginsModule(), new DefaultPlugins(), new HintsModule(hints)))
                .getInstance(org.locationtech.geogig.api.Context.class);
    }
View Full Code Here

    /**
     * Creates the injector to enable xerial sqlite storage.
     */
    public static Context injector(final TestPlatform platform) {
        return Guice.createInjector(Modules.override(new GeogigModule()).with(
                new XerialSQLiteModule(), new AbstractModule() {
                    @Override
                    protected void configure() {
                        Xerial.turnSynchronizationOff();
                        bind(Platform.class).toInstance(platform);
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.di.GeogigModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.