jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: event listener not getting any events..
Date Tue, 18 Jul 2006 08:53:18 GMT
Jukka Zitting wrote:
> Hi,
> 
> On 7/17/06, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
>> This is expected behaviour. The spec says about the node type parameter:
>>
>> <jsr-170>
>> nodeTypeName: Only events whose associated parent node has one of the
>> node types (or a subtype of one of the node types) in this list will
>> be received. If this parameter is null then no node typerelated
>> restriction is placed on events received. Note that specifying an
>> empty array instead of null would result in no node types being
>> listened to.
>> </jsr-170>
> 
> Argh, the javax.jcr.observation.ObservationManager Javadoc says:
> 
>    nodeTypeName: Only events whose associated node has one of the
>    node types (or a subtype of one of the node types) in this list will be
>    received. If his parameter is null then no node type-related restriction
>    is placed on events received.
> 
> Cc'ing jsr-170-comments@jcp.org as this is something that definitely
> should be fixed if still possible in the upcoming JSR 170 maintenance
> release.

So the code is right and the javadoc is wrong then? I find it a bit odd 
to specify the parent node for nodetypes I want to register events for, 
it makes it almost impossible to do what I want to do without 
registering my eventhandler for _all_ nodetypes.

-- 
-Torgeir

Mime
View raw message