PMContext
PersistenceManager
13911392139313941395139613971398139914001401
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); }
11701171117211731174117511761177117811791180
NamespaceRegistry nsReg, NodeTypeRegistry ntReg) throws RepositoryException { try { PersistenceManager pm = (PersistenceManager) pmConfig.newInstance(); pm.init(new PMContext(homeDir, fs, rootNodeId, nsReg, ntReg)); return pm; } catch (Exception e) { String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName(); throw new RepositoryException(msg, e); }
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); }
128129130131132133134135136137138
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,
13421343134413451346134713481349135013511352
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()));
13221323132413251326132713281329133013311332
112113114115116117118119120121122
13481349135013511352135313541355135613571358
117118119120121122123124125126127
13301331133213331334133513361337133813391340
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(),