org.modeshape.jcr.RepositoryConfiguration.getPersistenceConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.modeshape.jcr.RepositoryConfiguration.getPersistenceConfiguration方法的一些代码示例,展示了RepositoryConfiguration.getPersistenceConfiguration的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryConfiguration.getPersistenceConfiguration方法的具体详情如下:
包路径:org.modeshape.jcr.RepositoryConfiguration
类名称:RepositoryConfiguration
方法名:getPersistenceConfiguration

RepositoryConfiguration.getPersistenceConfiguration介绍

暂无

代码示例

代码示例来源:origin: ModeShape/modeshape

@Test
public void shouldLoadDatabaseFromConfiguration() throws Exception {
  String pathToStorage = "target/repo/Library/content";
  FileUtil.delete(pathToStorage);
  // Create the repository configuration ...
  String configFilePath = "config/repo-config-inmemory-local-environment.json";
  InputStream configFileStream = getClass().getClassLoader().getResourceAsStream(configFilePath);
  RepositoryConfiguration repositoryConfiguration = RepositoryConfiguration.read(configFileStream, "doesn't matter");
  LocalEnvironment environment = new LocalEnvironment();
  assertNotNull(environment.getDb(repositoryConfiguration.getPersistenceConfiguration()));
}

代码示例来源:origin: ModeShape/modeshape

} else {
  this.schematicDb = environment().getDb(config.getPersistenceConfiguration());
  this.txMgrLookup = config.getTransactionManagerLookup();
  this.txnMgr = this.txMgrLookup.getTransactionManager();

代码示例来源:origin: org.fcrepo/modeshape-jcr

} else {
  this.schematicDb = environment().getDb(config.getPersistenceConfiguration());
  this.txMgrLookup = config.getTransactionManagerLookup();
  this.txnMgr = this.txMgrLookup.getTransactionManager();

相关文章

微信公众号

最新文章

更多