Class InMemoryRepository.Builder
java.lang.Object
org.eclipse.jgit.lib.BaseRepositoryBuilder<InMemoryRepository.Builder,InMemoryRepository>
org.eclipse.jgit.internal.storage.dfs.DfsRepositoryBuilder<InMemoryRepository.Builder,InMemoryRepository>
org.eclipse.jgit.internal.storage.dfs.InMemoryRepository.Builder
- Enclosing class:
InMemoryRepository
public static class InMemoryRepository.Builder
extends DfsRepositoryBuilder<InMemoryRepository.Builder,InMemoryRepository>
Builder for in-memory repositories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a repository matching the configuration in this builder.Methods inherited from class org.eclipse.jgit.internal.storage.dfs.DfsRepositoryBuilder
addAlternateObjectDirectory, getReaderOptions, getRepositoryDescription, setGitDir, setIndexFile, setObjectDirectory, setReaderOptions, setRepositoryDescription, setup, setWorkTree
Methods inherited from class org.eclipse.jgit.lib.BaseRepositoryBuilder
addAlternateObjectDirectories, addAlternateObjectDirectories, addCeilingDirectories, addCeilingDirectories, addCeilingDirectory, findGitDir, findGitDir, getAlternateObjectDirectories, getConfig, getFS, getGitDir, getIndexFile, getInitialBranch, getObjectDirectory, getWorkTree, isBare, isMustExist, loadConfig, readEnvironment, readEnvironment, requireGitDirOrWorkTree, safeFS, self, setBare, setFS, setInitialBranch, setMustExist, setupGitDir, setupInternals, setupWorkTree
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from class:DfsRepositoryBuilder
Create a repository matching the configuration in this builder.If an option was not set, the build method will try to default the option based on other options. If insufficient information is available, an exception is thrown to the caller.
Create a repository matching the configuration in this builder.
If an option was not set, the build method will try to default the option based on other options. If insufficient information is available, an exception is thrown to the caller.
- Specified by:
build
in classDfsRepositoryBuilder<InMemoryRepository.Builder,
InMemoryRepository> - Returns:
- a repository matching this configuration. The caller is responsible to close the repository instance when it is no longer needed.
- Throws:
IOException
- the repository could not be accessed to configure the rest of the builder's parameters.
-