Package org.openhab.core.test.storage
Class VolatileStorageService
java.lang.Object
org.openhab.core.test.storage.VolatileStorageService
- All Implemented Interfaces:
- StorageService
The 
VolatileStorageService returns VolatileStorages
 which stores their data in-memory.- Author:
- Thomas Eichstaedt-Engelen - Initial contribution
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> Storage<T> getStorage(String name) Returns theStoragewith the givenname.<T> Storage<T> getStorage(String name, @Nullable ClassLoader classLoader) 
- 
Constructor Details- 
VolatileStorageServicepublic VolatileStorageService()
 
- 
- 
Method Details- 
getStorageDescription copied from interface:StorageServiceReturns theStoragewith the givenname. If noStoragewith this name exists a new initialized instance is returned.- Specified by:
- getStoragein interface- StorageService
- Parameters:
- name- the name of the- StorageServiceto return
- Returns:
- a ready to use Storage, nevernull
 
- 
getStorageDescription copied from interface:StorageServiceReturns theStoragewith the givennameand a givenClassLoader. If noStoragewith this name exists a new initialized instance is returned.- Specified by:
- getStoragein interface- StorageService
- Type Parameters:
- T- The type of the storage service
- Parameters:
- name- the name of the- StorageServiceto return
- classLoader- the class loader which should be used by the- Storage
- Returns:
- a ready to use Storage, nevernull
 
 
-