Currently o.a.s.jcr.resource.internal.helper.MapEntries (which maintain domain mappings) is a javax.jcr.observation.EventListener. When an event occur somewhere in the /etc/map tree, the MapEntries map is updated.
In my project I need to provide domain mappings under /etc/map as non-JCR resources. MapEntries uses the Resource API to iterate through the resources under /etc/map, so it is quite easy to use resources instead of nodes to specify domain mappings. Except for one thing: MapEntries is only updated on a JCR event, so I currently need to fire that manually when one of my resources has changed. Does it make sense to rewrite MapEntries to be a OSGi EventHandler instead? -- Vidar S. Ramdal <[email protected]> - http://www.idium.no Sommerrogata 13-15, N-0255 Oslo, Norway + 47 22 00 84 00 / +47 21 531941, ext 2070
