[ https://issues.apache.org/jira/browse/OAK-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809179#comment-13809179 ]
Jukka Zitting commented on OAK-1131: ------------------------------------ I'd preferably use a constructor argument for this (as then the observer field can be final), or alternatively the {{setObserver()}} setter. The {{Observer}} interface is designed to be composable, so that a NodeStore implementation only needs to worry about a single observer. > Provide a way to inject Observer instances into NodeStore implementations > -------------------------------------------------------------------------- > > Key: OAK-1131 > URL: https://issues.apache.org/jira/browse/OAK-1131 > Project: Jackrabbit Oak > Issue Type: Improvement > Components: core > Reporter: Michael Dürig > > Currently {{KernelNodeStore}} has a public {{setObserver()}} method, > {{SegmentNodeStore}} has its {{Observer}} hard coded to the empty observer > and no way to set it and {{MongoNodeStore}} has no {{Observer}} at all. > To make the observer mechanism useful for clients we should come up with a > way to inject {{Observer}} instances into a {{NodeStore}}. -- This message was sent by Atlassian JIRA (v6.1#6144)