geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r794422 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java
Date Wed, 15 Jul 2009 21:30:37 GMT
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);



Mime
View raw message