Examples of GeogigModule


Examples of org.locationtech.geogig.di.GeogigModule

    /**
     * @param hints a set of hints to pass over to the injector to be injected into components that
     *        can make use of it
     */
    public Context build(Hints hints) {
        return Guice.createInjector(new GeogigModule(), new HintsModule(hints)).getInstance(
                org.locationtech.geogig.api.Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

    @Override
    public Context build(Hints hints) {
        FunctionalTestModule functionalTestModule = new FunctionalTestModule(platform.clone());

        Context context = Guice.createInjector(
                Modules.override(new GeogigModule()).with(new PluginsModule(),
                        new CLIContextBuilder.DefaultPlugins(), functionalTestModule,
                        new HintsModule(hints), new CachingModule())).getInstance(Context.class);
        return context;
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

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

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 MongoTestStorageModule(),
                        new TestModule(testPlatform))).getInstance(Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

    }

    @Override
    public Context build(Hints hints) {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new MemoryModule(platform),
                        new HintsModule(hints))).getInstance(Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

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

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 MongoTestStorageModule(),
                        new TestModule(testPlatform))).getInstance(Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

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

Examples of org.locationtech.geogig.di.GeogigModule

public class MongoRevTreeBuilderPerformanceTest extends RevTreeBuilderPerformanceTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new MongoTestStorageModule()))
                .getInstance(Context.class);
    }
View Full Code Here

Examples of org.locationtech.geogig.di.GeogigModule

public class JEDiffOpTest extends org.locationtech.geogig.test.integration.DiffOpTest {
    @Override
    protected Context createInjector() {
        return Guice.createInjector(
                Modules.override(new GeogigModule()).with(new JETestStorageModule())).getInstance(
                Context.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.