本文整理了Java中org.modeshape.jcr.RepositoryConfiguration.getPersistenceConfiguration
方法的一些代码示例,展示了RepositoryConfiguration.getPersistenceConfiguration
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RepositoryConfiguration.getPersistenceConfiguration
方法的具体详情如下:
包路径:org.modeshape.jcr.RepositoryConfiguration
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!