You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2016/12/16 16:57:00 UTC

svn commit: r1774640 - /sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java

Author: cziegeler
Date: Fri Dec 16 16:56:59 2016
New Revision: 1774640

URL: http://svn.apache.org/viewvc?rev=1774640&view=rev
Log:
SLING-6408 : OsgiObservationBridge registration is too aggressive

Modified:
    sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java

Modified: sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java?rev=1774640&r1=1774639&r2=1774640&view=diff
==============================================================================
--- sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java (original)
+++ sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/observation/OsgiObservationBridge.java Fri Dec 16 16:56:59 2016
@@ -84,7 +84,7 @@ public class OsgiObservationBridge imple
             cardinality=ReferenceCardinality.AT_LEAST_ONE,
             policy=ReferencePolicy.DYNAMIC,
             service=EventHandler.class,
-            target="(event.topics=org/apache/sling/api/resource/*)")
+            target="(|(event.topics=org/apache/sling/api/resource/Resource/*)(event.topics=org/apache/sling/api/resource/ResourceProvider/*))")
     private void bindEventHandler(final EventHandler handler) {
         logger.warn("Found OSGi Event Handler for deprecated resource bridge: {}", handler);
     }