Rewrite MapEntries to be a OSGi EventHandler instead of a JCR EventListener
---------------------------------------------------------------------------
Key: SLING-1463
URL: https://issues.apache.org/jira/browse/SLING-1463
Project: Sling
Issue Type: Improvement
Components: JCR
Affects Versions: JCR Resource 2.0.6
Reporter: Vidar S. Ramdal
Fix For: JCR Resource 2.0.8
o.a.s.jcr.resource.internal.helper.MapEntries is responsible for holding a map
of domain mappings. The map is created by scanning resources found under
/etc/map.
Currently, the scanning is triggered when a JCR node under /etc/map is
modified, as MapEntries implements javax.jcr.observation.EventListener.
To support resources other than JCR nodes for domain map specifications,
MapEntries should instead listen for OSGi resource events sent through
EventAdmin - thus implement org.osgi.service.event.Event instead of
javax.jcr.observation.EventListener.
As MapEntries already uses the Resource API (not the JCR API) to examine the
/etc/map tree, this task should not be too hard.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.