You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2015/09/15 18:29:45 UTC

[jira] [Updated] (OAK-3382) Improve Registration Of ConflictHandlers

     [ https://issues.apache.org/jira/browse/OAK-3382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated OAK-3382:
------------------------
    Component/s: core

> Improve Registration Of ConflictHandlers
> ----------------------------------------
>
>                 Key: OAK-3382
>                 URL: https://issues.apache.org/jira/browse/OAK-3382
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.3.5
>            Reporter: Dominique Jäggi
>
> currently _ConflictHandlers_ must be added by calling 
> {code}
>   new Oak(store)
>                 ...
>                 .with(new MyConflictHandler())
>                 ...
> {code}
> if such a call takes place after the registration of the default conflict handlers they will never be called for a conflict, as the default conflict handlers have precedence, amongst them the _AnnotatingConflictHandler_ effectively marking the conflict.
> {code}
>               ...
>             .with(JcrConflictHandler.createJcrConflictHandler())
>               ...
> {code}
> this could be tackled using a whiteboard-based ConflictHandler provider. conflict handlers could be ordered by service.ranking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)