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.IOException
public void initialize(ConfigService configService) throws java.lang.Exception
initialize
in interface PersistenceService
java.lang.Exception
public java.util.Set<java.lang.String> getSessions()
getSessions
in interface PersistenceService
public void disposeSession(java.lang.String session)
disposeSession
in interface PersistenceService
public PersistenceContext newContext(ConfigContext context, boolean isLoad) throws java.lang.Exception
PersistenceContext
for the given ConfigContext
.newContext
in interface PersistenceService
isLoad
- whether the persistence context is created for a session being loaded or created.java.lang.Exception