You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/07/15 23:30:37 UTC

svn commit: r794422 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java

Author: gawor
Date: Wed Jul 15 21:30:36 2009
New Revision: 794422

URL: http://svn.apache.org/viewvc?rev=794422&view=rev
Log:
don't set SERVICE_RANKING property when ranking is 0

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=794422&r1=794421&r2=794422&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 Wed Jul 15 21:30:36 2009
@@ -142,7 +142,11 @@
                 properties = (Map) createRecipe(propertiesRecipe);
             }
             props.putAll(properties);
-            props.put(Constants.SERVICE_RANKING, metadata.getRanking());
+            if (metadata.getRanking() == 0) {
+                props.remove(Constants.SERVICE_RANKING);
+            } else {
+                props.put(Constants.SERVICE_RANKING, metadata.getRanking());
+            }
             String componentName = getComponentName();
             if (componentName != null) {
                 props.put(BlueprintConstants.COMPONENT_NAME_PROPERTY, componentName);