jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: [j3] Repository MicroKernel API draft
Date Fri, 10 Jun 2011 11:18:50 GMT

On Wed, May 11, 2011 at 6:31 PM, Stefan Guggisberg
<stefan.guggisberg@gmail.com> wrote:
> as some of you may have noticed i've started work on my own
> MicroKernel proposal a while ago in the jackrabbit sandbox.
> although the project is in a very early stage i wanted to share my work
> with you.

Good stuff! I see people are already starting to collaborate on this.

> as always, questions & feedback are welcome.

The MicroKernel interface [1] reads more like a REST than a Java API.
I guess that's the intention, but I question why one would ever want
to pass around serialized JSON strings around in a Java application. A
Java client would just parse the string again, leading to unnecessary
serialize/parse rounds whenever an API call is made. So, assuming we
are designing a REST API (which seems like a good idea), instead of
defining the API as a Java interface, wouldn't it make more sense to
directly with a HTTP binding or alternatively a more abstract API

Another question: Why would we ever want to build our own JSON parsing
and serialization code? Just use one of the existing libraries out

[1] http://svn.apache.org/repos/asf/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java


Jukka Zitting

View raw message