Search in sources :

Example 1 with CachingModule

use of org.locationtech.geogig.di.caching.CachingModule in project GeoGig by boundlessgeo.

the class CLITestContextBuilder method build.

@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;
}
Also used : Context(org.locationtech.geogig.api.Context) CLIContextBuilder(org.locationtech.geogig.cli.CLIContextBuilder) PluginsModule(org.locationtech.geogig.di.PluginsModule) GeogigModule(org.locationtech.geogig.di.GeogigModule) CachingModule(org.locationtech.geogig.di.caching.CachingModule)

Aggregations

Context (org.locationtech.geogig.api.Context)1 CLIContextBuilder (org.locationtech.geogig.cli.CLIContextBuilder)1 GeogigModule (org.locationtech.geogig.di.GeogigModule)1 PluginsModule (org.locationtech.geogig.di.PluginsModule)1 CachingModule (org.locationtech.geogig.di.caching.CachingModule)1