Interface PackagesStorageProvider
-
public interface PackagesStorageProviderThe provider provides a generic method to get a storage provider.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description PackagesStoragegetStorage(PackagesStorageConfiguration config)Get a storage with the configuration.static PackagesStorageProvidernewProvider(java.lang.String providerClassName)Construct a provider from the provided class.
-
-
-
Method Detail
-
newProvider
static PackagesStorageProvider newProvider(java.lang.String providerClassName) throws java.io.IOException
Construct a provider from the provided class.- Parameters:
providerClassName- the provider class name- Returns:
- an instance of package storage provider
- Throws:
java.io.IOException
-
getStorage
PackagesStorage getStorage(PackagesStorageConfiguration config)
Get a storage with the configuration.- Parameters:
config- storage configuration- Returns:
-
-