Class JGitVersionStoreFactory
- java.lang.Object
-
- org.projectnessie.server.providers.JGitVersionStoreFactory
-
- All Implemented Interfaces:
VersionStoreFactory
@StoreType(JGIT) @Dependent public class JGitVersionStoreFactory extends Object implements VersionStoreFactory
JGit version store factory.
-
-
Constructor Summary
Constructors Constructor Description JGitVersionStoreFactory(JGitVersionStoreConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <VALUE,METADATA,VALUE_TYPE extends Enum<VALUE_TYPE>>
VersionStore<VALUE,METADATA,VALUE_TYPE>newStore(StoreWorker<VALUE,METADATA,VALUE_TYPE> worker)Creates a new store using the provided worker.
-
-
-
Constructor Detail
-
JGitVersionStoreFactory
@Inject public JGitVersionStoreFactory(JGitVersionStoreConfig config)
-
-
Method Detail
-
newStore
public <VALUE,METADATA,VALUE_TYPE extends Enum<VALUE_TYPE>> VersionStore<VALUE,METADATA,VALUE_TYPE> newStore(StoreWorker<VALUE,METADATA,VALUE_TYPE> worker) throws IOException
Description copied from interface:VersionStoreFactoryCreates a new store using the provided worker.- Specified by:
newStorein interfaceVersionStoreFactory- Type Parameters:
VALUE- the value typeMETADATA- the metadata typeVALUE_TYPE- the value type enum- Parameters:
worker- the worker instance- Returns:
- a store instance
- Throws:
IOException- if an exception occurs during store instantiation
-
-