Package org.openhab.core.storage
Interface DeletableStorageService
- All Superinterfaces:
StorageService
The
DeletableStorageService extends the normal StorageService and provides instances of
DeletableStorages.- Author:
- Markus Rathgeb - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription<T> DeletableStorage<T> getStorage(String name) Returns theStoragewith the givenname.<T> DeletableStorage<T> getStorage(String name, @Nullable ClassLoader classLoader)
-
Method Details
-
getStorage
Description copied from interface:StorageServiceReturns theStoragewith the givenname. If noStoragewith this name exists a new initialized instance is returned.- Specified by:
getStoragein interfaceStorageService- Parameters:
name- the name of theStorageServiceto return- Returns:
- a ready to use
Storage, nevernull
-
getStorage
Description copied from interface:StorageServiceReturns theStoragewith the givennameand a givenClassLoader. If noStoragewith this name exists a new initialized instance is returned.- Specified by:
getStoragein interfaceStorageService- Type Parameters:
T- The type of the storage service- Parameters:
name- the name of theStorageServiceto returnclassLoader- the class loader which should be used by theStorage- Returns:
- a ready to use
Storage, nevernull
-