public final class StorePersisterFactory extends OdsObject
The store persister factory, a singleton object, provides methods to create store persisters.
Modifier and Type | Method and Description |
---|---|
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.
|
getChecked, getThreaded, getTracer, setChecked, setTracer
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.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.