Dominique Jäggi created OAK-3382:
------------------------------------

             Summary: Improve Registration Of ConflictHandlers
                 Key: OAK-3382
                 URL: https://issues.apache.org/jira/browse/OAK-3382
             Project: Jackrabbit Oak
          Issue Type: Improvement
    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)

Reply via email to