servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r384803 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
Date Fri, 10 Mar 2006 14:26:59 GMT
Author: gnodet
Date: Fri Mar 10 06:26:57 2006
New Revision: 384803

URL: http://svn.apache.org/viewcvs?rev=384803&view=rev
Log:
Use capitalized property names for mbeans

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

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java?rev=384803&r1=384802&r2=384803&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/management/ManagementContext.java
Fri Mar 10 06:26:57 2006
@@ -351,10 +351,10 @@
      */
     public ObjectName createCustomComponentMBeanName(String type, String name) {
         Map result = new LinkedHashMap();
-        result.put("container", container.getName());
-        result.put("type", "Component");
-        result.put("name", sanitizeString(name));
-        result.put("subtype", sanitizeString(type));
+        result.put("ContainerName", container.getName());
+        result.put("Type", "Component");
+        result.put("Name", sanitizeString(name));
+        result.put("SubType", sanitizeString(type));
         return createObjectName(result);
     }
 
@@ -438,11 +438,11 @@
      */
     public Map createObjectNameProps(MBeanInfoProvider provider){
         Map result = new LinkedHashMap();
-        result.put("container", container.getName());
-        result.put("type", sanitizeString(provider.getType()));
-        result.put("name", sanitizeString(provider.getName()));
+        result.put("ContainerName", container.getName());
+        result.put("Type", sanitizeString(provider.getType()));
+        result.put("Name", sanitizeString(provider.getName()));
         if (provider.getSubType() != null) {
-            result.put("subtype", sanitizeString(provider.getSubType()));
+            result.put("SubType", sanitizeString(provider.getSubType()));
         }
         return result;
     }
@@ -509,7 +509,7 @@
      * @return the ObjectName
      */
     public static ObjectName getSystemObjectName(String domainName, String containerName,
Class interfaceType) {
-        String tmp = domainName + ":container=" + containerName + ",type=SystemService,name="
+ getSystemServiceName(interfaceType); 
+        String tmp = domainName + ":ContainerName=" + containerName + ",Type=SystemService,Name="
+ getSystemServiceName(interfaceType); 
         ObjectName result = null;
         try {
             result = new ObjectName(tmp);
@@ -533,7 +533,7 @@
     }
     
     public static ObjectName getContainerObjectName(String domainName, String containerName)
{
-        String tmp = domainName + ":container=" + containerName + ",type=JBIContainer";
+        String tmp = domainName + ":ContainerName=" + containerName + ",Type=JBIContainer";
         ObjectName result = null;
         try {
             result = new ObjectName(tmp);



Mime
View raw message