aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1551267 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java
Date Mon, 16 Dec 2013 17:09:35 GMT
Author: gnodet
Date: Mon Dec 16 17:09:35 2013
New Revision: 1551267

URL: http://svn.apache.org/r1551267
Log:
Fix broken service registration listener

Modified:
    aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java

Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java?rev=1551267&r1=1551266&r2=1551267&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java
(original)
+++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/ServiceRecipe.java
Mon Dec 16 17:09:35 2013
@@ -191,6 +191,13 @@ public class ServiceRecipe extends Abstr
             ServiceRegistration reg = blueprintContainer.registerService(classArray, new
TriggerServiceFactory(this, metadata), props);
             if (!registration.compareAndSet(null, reg) && registration.get() != reg)
{
                 reg.unregister();
+            } else {
+                if (listeners != null) {
+                    LOGGER.debug("Calling listeners for service registration");
+                    for (ServiceListener listener : listeners) {
+                        listener.register(service, registrationProperties);
+                    }
+                }
             }
         }
     }



Mime
View raw message