|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.ods.OdsObject
com.neeve.ods.StorePersisterFactory
public final class StorePersisterFactory
The store persister factory.
The store persister factory, a singleton object, provides methods to create store persisters.
Method Summary | |
---|---|
IStorePersister |
createPersister(StorePersisterDescriptor descriptor)
Create a persister using a prsister descriptor. |
IStorePersister |
createPersister(String name)
Convenience method to create a persister using a descriptor loaded from the default configuration repository. |
static StorePersisterFactory |
getInstance()
Get the singleton store persister factory instance. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final StorePersisterFactory getInstance()
public final IStorePersister createPersister(StorePersisterDescriptor descriptor) throws OdsException
descriptor
- The descriptor to use to create the persister.
OdsException
- Thrown in case an error occurs during the creation
of the persister.public final IStorePersister createPersister(String name) throws OdsException
name
- The name of the persister to create. The persister name is
used to locate the descriptor from the configuration repository.
OdsException
- Thrown in case an error occurs during the creation
of the persister.
This method creates a store persister using a persister identified by name.
It first loads a store descriptor from the default configuration repository
using {@link StorePersisterDescriptor#load} and then supplies the created descriptor
to {@link #createPersister(StorePersisterDescriptor)} to create the persister.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |