com.neeve.ods
Class StorePersisterFactory

java.lang.Object
  extended by com.neeve.root.RootObject
      extended by com.neeve.ods.OdsObject
          extended by com.neeve.ods.StorePersisterFactory

public final class StorePersisterFactory
extends OdsObject

The store persister factory.

The store persister factory, a singleton object, provides methods to create store persisters.

Threading:
The store persister factory is not safe for concurrent access by multiple threads.

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

getInstance

public static final StorePersisterFactory getInstance()
Get the singleton store persister factory instance.

Threading:
This method is safe for concurrent access by multiple threads.

createPersister

public final IStorePersister createPersister(StorePersisterDescriptor descriptor)
                                      throws OdsException
Create a persister using a prsister descriptor.

Parameters:
descriptor - The descriptor to use to create the persister.
Throws:
OdsException - Thrown in case an error occurs during the creation of the persister.
Threading:
This method is not safe for concurrent access by multiple threads.

createPersister

public final IStorePersister createPersister(String name)
                                      throws OdsException
Convenience method to create a persister using a descriptor loaded from the default configuration repository.

Parameters:
name - The name of the persister to create. The persister name is used to locate the descriptor from the configuration repository.
Throws:
OdsException - Thrown in case an error occurs during the creation of the persister.
See Also:

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.

Threading:
This method is not safe for concurrent access by multiple threads.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.