amichair commented on code in PR #110:
URL: https://github.com/apache/aries-rsa/pull/110#discussion_r3254125184


##########
topology-manager/src/main/java/org/apache/aries/rsa/topologymanager/exporter/TopologyManagerExport.java:
##########
@@ -87,40 +87,31 @@ private String getTypeName(ServiceEvent event) {
     public void serviceChanged(ServiceEvent event) {
         ServiceReference<?> sref = event.getServiceReference();
         if (!shouldExport(sref)) {
-            LOG.trace("Skipping service {}", sref);
+            LOG.trace("ignoring service {}", sref);
             return;
         }
         LOG.info("Received ServiceEvent type: {}, sref: {}", 
getTypeName(event), sref);
         switch (event.getType()) {
         case ServiceEvent.REGISTERED:
-            add(sref);
+            exportable.add(sref);
+            export(sref);
             break;
 
         case ServiceEvent.MODIFIED:
-            modified(sref);
+            // TODO: we should determine whether the properties that changed 
are normal

Review Comment:
   I don't know if or how this will be handled, and thought it would be a good 
idea to document this theoretical edge case just in case, but will remove for 
now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to