jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject JSOP extension points, was: JSOP
Date Mon, 05 Dec 2011 13:35:42 GMT
On 2011-11-29 17:37, Thomas Mueller wrote:
> Hi,
>
> What is not on this wiki page yet - because it's not defined yet - is:
> "commit metadata". Commit metadata is needed when you want to:
>
> * get multiple commits (diffs) in one block
> * send multiple commits (diffs) in one block
>
> As an example, see MicroKernel.getJournal() at
> http://svn.apache.org/repos/asf/jackrabbit/sandbox/microkernel/src/main/jav
> a/org/apache/jackrabbit/mk/api/MicroKernel.java
>
> This method is supposed to get multiple commits in one operation.
>
> I propose the following syntax:
>
> @ {"ts": 1322055029229, "msg": "New node 'hello'"}
> + "/hello": {}
> @ {"ts": 1322055029230, "msg": "New node 'world'"}
> + "/world": {}
>
> That means, the syntax for "commit metadata" is:
>
> METADATA ::= "@" OBJECT
> ...

This highlights a general problem with the compact syntax; it lacks an 
extension point.

Unless I'm missing something, a today's JSOP parsers will be unable to 
parse future messages that contain an extension defined like the above, 
as they won't know how to skip over it.

Best regards, Julian

Mime
View raw message