本文整理了Java中org.locationtech.geogig.repository.Hints.uri()
方法的一些代码示例,展示了Hints.uri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hints.uri()
方法的具体详情如下:
包路径:org.locationtech.geogig.repository.Hints
类名称:Hints
方法名:uri
[英]Sets a hint for the provided repository URI.
[中]为提供的存储库URI设置提示。
代码示例来源:origin: locationtech/geogig
@Override
public ConfigDatabase getConfigDatabase(URI repoURI, Context repoContext, boolean rootUri) {
Hints hints = new Hints().uri(repoURI);
Platform platform = repoContext.platform();
return new IniFileConfigDatabase(platform, hints, rootUri);
}
代码示例来源:origin: org.locationtech.geogig/geogig-core
@Override
public ConfigDatabase getConfigDatabase(URI repoURI, Context repoContext, boolean rootUri) {
Hints hints = new Hints().uri(repoURI);
Platform platform = repoContext.platform();
return new IniFileConfigDatabase(platform, hints, rootUri);
}
代码示例来源:origin: org.locationtech.geogig/geogig-web-app
Repository loadGeoGIG(URI repo, GeogigCLI cli) {
GeoGIG geogig = cli.newGeoGIG(new Hints().uri(repo));
if (geogig.command(ResolveGeogigURI.class).call().isPresent()) {
geogig.getRepository();
}
return geogig.getRepository();
}
}
代码示例来源:origin: locationtech/geogig
protected Context createInjector() {
Platform platform = createPlatform();
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return new TestContextBuilder().build(hints);
}
代码示例来源:origin: org.locationtech.geogig/geogig-core
protected Context createInjector() {
Platform platform = createPlatform();
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return new TestContextBuilder().build(hints);
}
代码示例来源:origin: locationtech/geogig
@Test
public void testUri() throws URISyntaxException {
Hints hints = new Hints();
assertFalse(hints.get(Hints.REPOSITORY_URL).isPresent());
URI repoURI = new URI("repoURI");
hints.uri(repoURI);
assertEquals(repoURI, hints.get(Hints.REPOSITORY_URL).get());
}
代码示例来源:origin: locationtech/geogig
static Context createContext(File repositoryDirectory) {
Platform platform = new TestPlatform(repositoryDirectory);
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return Guice.createInjector(Modules.override(new GeogigModule())
.with(new HintsModule(hints), new RocksStorageModule())).getInstance(Context.class);
}
代码示例来源:origin: org.locationtech.geogig/geogig-rocksdb
static Context createContext(File repositoryDirectory) {
Platform platform = new TestPlatform(repositoryDirectory);
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return Guice.createInjector(Modules.override(new GeogigModule())
.with(new HintsModule(hints), new RocksStorageModule())).getInstance(Context.class);
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: org.locationtech.geogig/geogig-bdbje
@Override
protected Context createInjector() {
Hints hints = new Hints().uri(repositoryDirectory.toURI()).platform(createPlatform());
return new JETestContextBuilder().build(hints);
}
}
代码示例来源:origin: locationtech/geogig
@Override
protected Context createInjector() {
Platform platform = createPlatform();
GlobalContextBuilder.builder(new TestContextBuilder(platform));
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return GlobalContextBuilder.builder().build(hints);
}
代码示例来源:origin: org.locationtech.geogig/geogig-datastore
@Override
protected Context createInjector() {
Platform platform = createPlatform();
GlobalContextBuilder.builder(new TestContextBuilder(platform));
URI uri = repositoryDirectory.getAbsoluteFile().toURI();
Hints hints = new Hints().uri(uri).platform(platform);
return GlobalContextBuilder.builder().build(hints);
}
代码示例来源:origin: locationtech/geogig
@Override
protected PGConflictsDatabase createConflictsDatabase() throws Exception {
Environment config = testConfig.getEnvironment();
PGStorage.createNewRepo(config);
String repoURL = testConfig.getRepoURL();
Hints hints = new Hints().uri(URI.create(repoURL));
PGConflictsDatabase conflicts = new PGConflictsDatabase(hints);
conflicts.open();
return conflicts;
}
内容来源于网络,如有侵权,请联系作者删除!