Jukka Zitting wrote:
Hi,
On 7/17/06, Marcel Reutegger <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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