PersistenceManagerFactory getPersistenceManagerFactory(
File propsFile,
ClassLoader loader
)
Returns a PersistenceManagerFactory configured based on the properties stored in the file at
propsFile
. Creates a PersistenceManagerFactory with loader
. Any IOException
s or FileNotFoundException
s thrown during resource loading will be wrapped in a JDOFatalUserException. - Parameters:
propsFile
- the file containing the Propertiesloader
- the class loader to use to load thePersistenceManagerFactory
class
- Return:
- the PersistenceManagerFactory
- Since:
- JDO 2.0