geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r795888 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java
Date Mon, 20 Jul 2009 16:08:47 GMT
Author: gawor
Date: Mon Jul 20 16:08:46 2009
New Revision: 795888

URL: http://svn.apache.org/viewvc?rev=795888&view=rev
Log:
service properties must be re-evaluated each time the service registers

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java?rev=795888&r1=795887&r2=795888&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java
Mon Jul 20 16:08:46 2009
@@ -70,7 +70,6 @@
     private final List<Recipe> explicitDependencies;
     private final boolean prototypeService;
 
-    private Map properties;
     private final AtomicBoolean registered = new AtomicBoolean();
     private volatile ServiceRegistration registration;
     private Map registrationProperties;
@@ -139,9 +138,7 @@
     public void register() {
         if (registered.compareAndSet(false, true)) {
             Hashtable props = new Hashtable();
-            if (properties == null) {
-                properties = (Map) createRecipe(propertiesRecipe);
-            }
+            Map properties = (Map) createRecipe(propertiesRecipe);
             props.putAll(properties);
             if (metadata.getRanking() == 0) {
                 props.remove(Constants.SERVICE_RANKING);



Mime
View raw message