Allow to register DocumentNodeStore as a NodeStoreProvider
Don't track observers if the document node store is just a node store
provider.
@@ -589,8 +589,10 @@ public class DocumentNodeStoreService {
registerLastRevRecoveryJob(nodeStore);
registerJournalGC(nodeStore);
+ if (!isNodeStoreProvider()) {
observerTracker = new ObserverTracker(nodeStore);
observerTracker.start(context.getBundleContext());
+ }
journalPropertyHandlerFactory.start(whiteboard);
DocumentStore ds = nodeStore.getDocumentStore();
