Package io.ultreia.java4all.config.io
Interface SpiStorage
-
- All Superinterfaces:
io.ultreia.java4all.util.io.ConfigFormat,io.ultreia.java4all.util.io.ReaderContract<ConfigModel>,io.ultreia.java4all.util.io.StorageContract<ConfigModel>,io.ultreia.java4all.util.io.WriterContract<ConfigModel>
public interface SpiStorage extends io.ultreia.java4all.util.io.StorageContract<ConfigModel>
Perform IO operations onConfigModel.Created on 10/12/2021.
- Since:
- 1.0.18
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description static io.ultreia.java4all.util.SingletonSupplier<Map<String,SpiStorage>>CACHECache.
-
Method Summary
Static Methods Modifier and Type Method Description static SpiStorageget(String format)Get theSpiStoragefor the givenformat.
-
-
-
Field Detail
-
CACHE
static final io.ultreia.java4all.util.SingletonSupplier<Map<String,SpiStorage>> CACHE
Cache.
-
-
Method Detail
-
get
static SpiStorage get(String format)
Get theSpiStoragefor the givenformat.- Parameters:
format- format of storage to get- Returns:
- the found storage
- Throws:
IllegalArgumentException- if no storage found for the given formatNullPointerException- if format is null
-
-