Package sonia.scm.store
Interface BlobStoreFactory
public interface BlobStoreFactory
The BlobStoreFactory can be used to create a new or get an existing
You can either create a global
BlobStore
s.
You can either create a global
BlobStore
or a BlobStore
for a specific repository. To create a global
BlobStore
call:
blobStoreFactory
.withName("name")
.build();
To create a BlobStore
for a specific repository call:
blobStoreFactory
.withName("name")
.forRepository(repository)
.build();
- Since:
- 1.23
-
Method Summary
Modifier and TypeMethodDescriptiongetStore
(StoreParameters storeParameters) Creates a new or gets an existingBlobStore
.default StoreParametersBuilder<BlobStore>
Use this to create a new or get an existingBlobStore
with a floating API.
-
Method Details
-
getStore
Creates a new or gets an existingBlobStore
. Instead of calling this method you should use the floating API fromwithName(String)
.- Parameters:
storeParameters
- The parameters for the blob store.- Returns:
- A new or an existing
BlobStore
for the given parameters.
-
withName
Use this to create a new or get an existingBlobStore
with a floating API.
-