Vidar Ramdal wrote > 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? > I think it makes sense, especially as we are planning to make the resource resolver usable in non jcr environments.
Regards Carsten -- Carsten Ziegeler [email protected]
