servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r483721 - /incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
Date Thu, 07 Dec 2006 23:00:21 GMT
Author: gnodet
Date: Thu Dec  7 15:00:20 2006
New Revision: 483721

URL: http://svn.apache.org/viewvc?view=rev&rev=483721
Log:
Fix compilation error

Modified:
    incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java

Modified: incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java?view=diff&rev=483721&r1=483720&r2=483721
==============================================================================
--- incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
(original)
+++ incubator/servicemix/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
Thu Dec  7 15:00:20 2006
@@ -448,11 +448,24 @@
      * @return the ObjectName
      */
     public Map createObjectNameProps(MBeanInfoProvider provider){
+        return createObjectNameProps(provider, false);
+    }
+
+    /**
+     * Create a String used to create an ObjectName
+     * 
+     * @param provider
+     * @return the ObjectName
+     */
+    public Map createObjectNameProps(MBeanInfoProvider provider, boolean subTypeBeforeName)
{
         Map result = new LinkedHashMap();
         result.put("ContainerName", container.getName());
         result.put("Type", sanitizeString(provider.getType()));
+        if (subTypeBeforeName && provider.getSubType() != null) {
+            result.put("SubType", sanitizeString(provider.getSubType()));
+        }
         result.put("Name", sanitizeString(provider.getName()));
-        if (provider.getSubType() != null) {
+        if (!subTypeBeforeName && provider.getSubType() != null) {
             result.put("SubType", sanitizeString(provider.getSubType()));
         }
         return result;



Mime
View raw message