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: [RT] JCR observation: adding "cargo" data to events?
Date Thu, 16 Aug 2007 12:01:54 GMT
Hi,

On 8/16/07, Bertrand Delacretaz <bdelacretaz@apache.org> wrote:
> On 8/16/07, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> > ....Have you considered how something like that could
> > be implemented already now as a Jackrabbit-specific extension?...
>
> One idea (that might also be better than my former proposal for
> JSR283) would be to add an additional setEventCargo(Object) method to
> the JCR Session, instead of having to modify all the save() (and
> move() as Thomas indicates) methods.

Sounds good.

> We could implement this in Jackrabbit by creating two cargo-specific
> interfaces, one for the Session and one for the Event, and having the
> Jackrabbit Session and Event implement these in addition to the
> official JCR interfaces.
>
> Is that in line with how Jackrabbit-specific stuff is done now, or do
> you have another suggestion?

For now I'd just put the extra methods directly on the SessionImpl and
EventImpl classes. We can formalize them in a jackrabbit-api (or
jackrabbit-jsr283) extension interface if they seem useful to a big
enough audience.

BR,

Jukka Zitting

Mime
View raw message