@Deprecated public class PersistenceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
PersistenceManager |
createManager()
Deprecated.
Reads the default properties and creates a persistencemanager
The default properties are picked up from the $USER_HOME or
from the classpath.
|
PersistenceManager |
createManager(String filePath)
Deprecated.
Duplicated signature to create PersistenceManager to allow user to
provide property path.
|
static PersistenceFactory |
getInstance()
Deprecated.
Singular public method to get access to any of the Persistence
Manager implementations.
|
void |
registerManager(PersistenceManager manager)
Deprecated.
Register a custom persistence manager as opposed to the
FilePersistenceManager or DBPersistenceManager. |
protected static final Log log
public static PersistenceFactory getInstance()
public void registerManager(PersistenceManager manager)
FilePersistenceManager or DBPersistenceManager.public PersistenceManager createManager() throws Exception
Exception;Exceptionpublic PersistenceManager createManager(String filePath) throws Exception
filePath - complete pathname to get the propertiesException;ExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.