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