org.nakedobjects.runtime.persistence.objectstore
Class ObjectStorePersistenceMechanismInstallerAbstract
java.lang.Object
org.nakedobjects.runtime.installers.InstallerAbstract
org.nakedobjects.runtime.persistence.PersistenceMechanismInstallerAbstract
org.nakedobjects.runtime.persistence.objectstore.ObjectStorePersistenceMechanismInstallerAbstract
- All Implemented Interfaces:
- ApplicationScopedComponent, Component, Installer, ConfigurationBuilderAware, InstallerLookupAware, PersistenceMechanismInstaller, PersistenceSessionFactoryDelegate
- Direct Known Subclasses:
- InMemoryPersistenceMechanismInstaller
public abstract class ObjectStorePersistenceMechanismInstallerAbstract
- extends PersistenceMechanismInstallerAbstract
|
Method Summary |
protected abstract ObjectStore |
createObjectStore(NakedObjectConfiguration configuration,
AdapterFactory adapterFactory,
AdapterManager adapterManager)
Hook method to return ObjectStore. |
protected PersistenceSessionObjectStore |
createObjectStorePersistor(PersistenceSessionFactory persistenceSessionFactory,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
ServicesInjector servicesInjector,
OidGenerator oidGenerator,
AdapterManagerExtended adapterManager,
PersistAlgorithm persistAlgorithm,
ObjectStorePersistence objectStore)
Can optionally be overridden, but by default creates an PersistenceSessionObjectStore. |
protected PersistAlgorithm |
createPersistAlgorithm(NakedObjectConfiguration configuration)
Hook method to create PersistAlgorithm. |
protected PersistenceSession |
createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory,
AdapterManagerExtended adapterManager,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
OidGenerator oidGenerator,
ServicesInjector servicesInjector)
Will return a PersistenceSessionObjectStore; subclasses are free to downcast if required. |
protected NakedObjectTransactionManager |
createTransactionManager(PersistenceSessionTransactionManagement persistor,
ObjectStoreTransactionManagement objectStore)
Hook method to return an NakedObjectTransactionManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectStorePersistenceMechanismInstallerAbstract
public ObjectStorePersistenceMechanismInstallerAbstract(java.lang.String name)
createPersistenceSession
protected PersistenceSession createPersistenceSession(PersistenceSessionFactory persistenceSessionFactory,
AdapterManagerExtended adapterManager,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
OidGenerator oidGenerator,
ServicesInjector servicesInjector)
- Will return a
PersistenceSessionObjectStore; subclasses are free to downcast if required.
- Specified by:
createPersistenceSession in class PersistenceMechanismInstallerAbstract
- See Also:
PersistenceMechanismInstallerAbstract.createPersistenceSession(PersistenceSessionFactory)
createObjectStorePersistor
protected PersistenceSessionObjectStore createObjectStorePersistor(PersistenceSessionFactory persistenceSessionFactory,
AdapterFactory adapterFactory,
ObjectFactory objectFactory,
ServicesInjector servicesInjector,
OidGenerator oidGenerator,
AdapterManagerExtended adapterManager,
PersistAlgorithm persistAlgorithm,
ObjectStorePersistence objectStore)
- Can optionally be overridden, but by default creates an
PersistenceSessionObjectStore.
createPersistAlgorithm
protected PersistAlgorithm createPersistAlgorithm(NakedObjectConfiguration configuration)
- Hook method to create
PersistAlgorithm.
By default returns a DefaultPersistAlgorithm.
createTransactionManager
protected NakedObjectTransactionManager createTransactionManager(PersistenceSessionTransactionManagement persistor,
ObjectStoreTransactionManagement objectStore)
- Hook method to return an
NakedObjectTransactionManager.
By default returns a ObjectStoreTransactionManager.
createObjectStore
protected abstract ObjectStore createObjectStore(NakedObjectConfiguration configuration,
AdapterFactory adapterFactory,
AdapterManager adapterManager)
- Hook method to return
ObjectStore.
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.