You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Thomas Müller <th...@day.com> on 2010/04/20 09:12:20 UTC
[jr3] Additional Jackrabbit interfaces in org.apache.jackrabbit.api
There are a few interfaces that might be interesting for all users of
Jackrabbit. Those should be in the api package (not only for OSGi).
The most important is probably:
org.apache.jackrabbit.core.observation.SynchronousEventListener
What about 'officially' supporting it, and moving it to
org.apache.jackrabbit.api? For example to
org.apache.jackrabbit.api.observation.SynchronousEventListener
Another related interface that currently doesn't exist is:
org.apache.jackrabbit.api.observation.ClusterEvent with a method
"isExternal()" so that you can find out if an event originated from
this or another cluster node (because in some cases you only want to
handle an event in one cluster node, not in all of them). Maybe we
would additionally need ClusterAwareEventListener and
ClusterAwareEventJournal (to avoid having to cast).
What do you think? Other interfaces? This is mainly for Jackrabbit 3,
but we might start supporting it within Jackrabbit 2.x as well if
needed.
Regards,
Thomas
Re: [jr3] Additional Jackrabbit interfaces in org.apache.jackrabbit.api
Posted by Carsten Ziegeler <cz...@apache.org>.
>
>> org.apache.jackrabbit.api.observation.ExtendedEvent
>
> I can't find this one.
>
Ups, hehe, this was a local modification in my checkout, so nevermind
Carsten
--
Carsten Ziegeler
cziegeler@apache.org
Re: [jr3] Additional Jackrabbit interfaces in org.apache.jackrabbit.api
Posted by Thomas Müller <th...@day.com>.
Hi,
> org.apache.jackrabbit.api.observation.JackrabbitEvent ?
You are right, I didn't see that... sorry... JackrabbitEvent already
has isExternal, so forget about ClusterEvent.
> org.apache.jackrabbit.api.observation.ExtendedEvent
I can't find this one.
Regards,
Thomas
Re: [jr3] Additional Jackrabbit interfaces in org.apache.jackrabbit.api
Posted by Carsten Ziegeler <cz...@apache.org>.
Isn't there already a
org.apache.jackrabbit.api.observation.ExtendedEvent and
org.apache.jackrabbit.api.observation.JackrabbitEvent ?
which somehow already seems to duplicate the ClusterEvent functionality
At least I can't make up the difference between those two interfaces.
Carsten
Thomas Müller wrote
> There are a few interfaces that might be interesting for all users of
> Jackrabbit. Those should be in the api package (not only for OSGi).
> The most important is probably:
>
> org.apache.jackrabbit.core.observation.SynchronousEventListener
>
> What about 'officially' supporting it, and moving it to
> org.apache.jackrabbit.api? For example to
> org.apache.jackrabbit.api.observation.SynchronousEventListener
>
> Another related interface that currently doesn't exist is:
> org.apache.jackrabbit.api.observation.ClusterEvent with a method
> "isExternal()" so that you can find out if an event originated from
> this or another cluster node (because in some cases you only want to
> handle an event in one cluster node, not in all of them). Maybe we
> would additionally need ClusterAwareEventListener and
> ClusterAwareEventJournal (to avoid having to cast).
>
> What do you think? Other interfaces? This is mainly for Jackrabbit 3,
> but we might start supporting it within Jackrabbit 2.x as well if
> needed.
>
> Regards,
> Thomas
>
--
Carsten Ziegeler
cziegeler@apache.org