Package alpine.persistence
Class PersistenceManagerFactory
- java.lang.Object
-
- alpine.persistence.PersistenceManagerFactory
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class PersistenceManagerFactory extends Object implements javax.servlet.ServletContextListener
Initializes the JDO persistence manager on server startup.- Since:
- 1.0.0
- Author:
- Steve Springett
-
-
Constructor Summary
Constructors Constructor Description PersistenceManagerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent event)voidcontextInitialized(javax.servlet.ServletContextEvent event)static javax.jdo.PersistenceManagercreatePersistenceManager()Creates a new JDO PersistenceManager.
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
createPersistenceManager
public static javax.jdo.PersistenceManager createPersistenceManager()
Creates a new JDO PersistenceManager.- Returns:
- a PersistenceManager
-
-