public class FilePersistenceService extends java.lang.Object implements PersistenceService
| Constructor and Description |
|---|
FilePersistenceService(java.io.File configRoot)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
disposeSession(java.lang.String session)
callback to dispose a given session.
|
java.util.Set<java.lang.String> |
getSessions()
returns the list of sessions that have been persisted.
|
void |
initialize(ConfigService configService)
initializes the persistence service.
|
PersistenceContext |
newContext(ConfigContext context, boolean isLoad)
creates a new
PersistenceContext for the given ConfigContext. |
public FilePersistenceService(java.io.File configRoot)
throws java.io.IOException
java.io.IOExceptionpublic void initialize(ConfigService configService) throws java.lang.Exception
initialize in interface PersistenceServicejava.lang.Exceptionpublic java.util.Set<java.lang.String> getSessions()
getSessions in interface PersistenceServicepublic void disposeSession(java.lang.String session)
disposeSession in interface PersistenceServicepublic PersistenceContext newContext(ConfigContext context, boolean isLoad) throws java.lang.Exception
PersistenceContext for the given ConfigContext.newContext in interface PersistenceServiceisLoad - whether the persistence context is created for a session being loaded or created.java.lang.Exception