org.nakedobjects.runtime.objectstore.inmemory
Class InMemoryPersistenceSessionFactory

java.lang.Object
  extended by org.nakedobjects.runtime.persistence.PersistenceSessionFactoryDelegating
      extended by org.nakedobjects.runtime.objectstore.inmemory.InMemoryPersistenceSessionFactory
All Implemented Interfaces:
ApplicationScopedComponent, Component, SpecificationLoaderAware, FixturesInstalledFlag, PersistenceSessionFactory

public class InMemoryPersistenceSessionFactory
extends PersistenceSessionFactoryDelegating


Constructor Summary
InMemoryPersistenceSessionFactory(DeploymentType deploymentType, PersistenceSessionFactoryDelegate persistenceSessionFactoryDelegate)
           
 
Method Summary
 void attach(PersistenceSession persistenceSession, ObjectStorePersistedObjects persistedObjects)
          Not API - called when InMemoryObjectStore is closed.
 ObjectStorePersistedObjects createPersistedObjects()
          Not API - called when InMemoryObjectStore first opened.
 PersistenceSession createPersistenceSession()
          Creates a PersistenceSession with the implementing object as the PersistenceSession's owning factory.
protected  void doShutdown()
          Optional hook method for implementation-specific shutdown.
protected  ObjectStorePersistedObjects getPersistedObjects()
           
 
Methods inherited from class org.nakedobjects.runtime.persistence.PersistenceSessionFactoryDelegating
doInit, getDelegate, getDeploymentType, getServices, getSpecificationLoader, init, isFixturesInstalled, setFixturesInstalled, setServices, setSpecificationLoader, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryPersistenceSessionFactory

public InMemoryPersistenceSessionFactory(DeploymentType deploymentType,
                                         PersistenceSessionFactoryDelegate persistenceSessionFactoryDelegate)
Method Detail

getPersistedObjects

protected ObjectStorePersistedObjects getPersistedObjects()

createPersistenceSession

public PersistenceSession createPersistenceSession()
Description copied from interface: PersistenceSessionFactory
Creates a PersistenceSession with the implementing object as the PersistenceSession's owning factory.

Specified by:
createPersistenceSession in interface PersistenceSessionFactory
Overrides:
createPersistenceSession in class PersistenceSessionFactoryDelegating

createPersistedObjects

public ObjectStorePersistedObjects createPersistedObjects()
Not API - called when InMemoryObjectStore first opened.


attach

public void attach(PersistenceSession persistenceSession,
                   ObjectStorePersistedObjects persistedObjects)
Not API - called when InMemoryObjectStore is closed.


doShutdown

protected void doShutdown()
Description copied from class: PersistenceSessionFactoryDelegating
Optional hook method for implementation-specific shutdown.

Overrides:
doShutdown in class PersistenceSessionFactoryDelegating


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.