Package wappsto.iot.filesystem
Class FileSystemJsonDataStore
- java.lang.Object
-
- wappsto.iot.filesystem.FileSystemJsonDataStore
-
-
Constructor Summary
Constructors Constructor Description FileSystemJsonDataStore()Instantiates the data store with the default pathFileSystemJsonDataStore(java.lang.String path)Instantiates the data store with a given path
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String identifier)java.lang.Objectload(java.lang.String identifier, java.lang.Class<?> T)Loads an object from a JSON file on the file systemvoidsave(java.lang.String identifier, java.lang.Object data)Saves an instance in data store.
-
-
-
Method Detail
-
save
public void save(java.lang.String identifier, java.lang.Object data)Saves an instance in data store.
-
load
public java.lang.Object load(java.lang.String identifier, java.lang.Class<?> T) throws java.lang.ExceptionLoads an object from a JSON file on the file system
-
delete
public void delete(java.lang.String identifier)
-
-