PMContext
PersistenceManager
13091310131113121313131413151316131713181319
NodeTypeRegistry ntReg, DataStore dataStore) throws RepositoryException { try { PersistenceManager pm = (PersistenceManager) pmConfig.newInstance(); pm.init(new PMContext(homeDir, fs, rootNodeId, nsReg, ntReg, dataStore)); return pm; } catch (Exception e) { String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName(); throw new RepositoryException(msg, e); }
13931394139513961397139813991400140114021403
14241425142614271428142914301431143214331434
NodeTypeRegistry ntReg, DataStore dataStore) throws RepositoryException { try { PersistenceManager pm = pmConfig.newInstance(PersistenceManager.class); pm.init(new PMContext(homeDir, fs, rootNodeId, nsReg, ntReg, dataStore)); return pm; } catch (Exception e) { String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName(); throw new RepositoryException(msg, e); }
112113114115116117118119120121122
assertPersistenceManager(manager); } private void assertPersistenceManager(PersistenceManager manager) throws Exception { manager.init(new PMContext( directory, new MemoryFileSystem(), RepositoryImpl.ROOT_NODE_ID, new NamespaceRegistryImpl(new MemoryFileSystem()), null,
13291330133113321333133413351336133713381339
private PersistenceManager createPersistenceManager( File homeDir, FileSystem fs, PersistenceManagerConfig pmConfig) throws RepositoryException { try { PersistenceManager pm = pmConfig.newInstance(PersistenceManager.class); pm.init(new PMContext( homeDir, fs, context.getRootNodeId(), context.getNamespaceRegistry(), context.getNodeTypeRegistry(), context.getDataStore()));
122123124125126127128129130131132
14001401140214031404140514061407140814091410
13631364136513661367136813691370137113721373
File homeDir, FileSystem fs, PersistenceManagerConfig pmConfig) throws RepositoryException { try { PersistenceManager pm = pmConfig .newInstance(PersistenceManager.class); PMContext pmContext = new PMContext( homeDir, fs, context.getRootNodeId(), context.getNamespaceRegistry(), context.getNodeTypeRegistry(), context.getDataStore(),