Example usage for org.eclipse.jgit.internal.storage.dfs DfsRepositoryBuilder DfsRepositoryBuilder

List of usage examples for org.eclipse.jgit.internal.storage.dfs DfsRepositoryBuilder DfsRepositoryBuilder

Introduction

In this page you can find the example usage for org.eclipse.jgit.internal.storage.dfs DfsRepositoryBuilder DfsRepositoryBuilder.

Prototype

DfsRepositoryBuilder

Source Link

Usage

From source file:com.benhumphreys.jgitcassandra.repo.CassandraRepository.java

License:Apache License

/**
 * Creating a new repository object may result in creating a new repository
 * in the storage layer, or if the repository identified by "repoDesc" already
 * exists, it will be used instead./*from  w  ww  .ja va  2  s  .  co m*/
 *
 * @param repoDesc  description of the repository that this object will
 *                  provide access to.
 */
@SuppressWarnings("rawtypes")
public CassandraRepository(DfsRepositoryDescription repoDesc, StoreConnection conn) throws IOException {
    super(new DfsRepositoryBuilder<DfsRepositoryBuilder, CassandraRepository>() {
        @Override
        public CassandraRepository build() throws IOException {
            throw new UnsupportedOperationException();
        }
    }.setRepositoryDescription(repoDesc));

    objdb = new CassandraObjDatabase(this, conn);
    refdb = new CassandraRefDatabase(this, conn);
}