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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
open
public void open()- Specified by:
openin interfacePersisterFactory
-
create
- Specified by:
createin interfacePersisterFactory
-