Package net.sodacan.core.persist.memory
Class MemoryPersisterFactory
java.lang.Object
net.sodacan.core.persist.memory.MemoryPersisterFactory
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PersisterFactory
As with all persisters, the factory hangs around until host closes it.
So, this is where we keep a map of persisted values. When asked to create a Persister, we
point it to this map.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemoryPersisterFactory
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
open
public void open()- Specified by:
open
in interfacePersisterFactory
-
create
- Specified by:
create
in interfacePersisterFactory
-