jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1503593 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java
Date Tue, 16 Jul 2013 07:46:12 GMT
Author: jukka
Date: Tue Jul 16 07:46:11 2013
New Revision: 1503593

URL: http://svn.apache.org/r1503593
Log:
OAK-804: MBean to track observation listeners

The ObjectName component values need to be quoted

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java?rev=1503593&r1=1503592&r2=1503593&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java
Tue Jul 16 07:46:11 2013
@@ -42,8 +42,8 @@ public class WhiteboardUtils {
             Class<T> iface, T bean, String type, String name) {
         try {
             Hashtable<String, String> table = new Hashtable<String, String>();
-            table.put("type", type);
-            table.put("name", name);
+            table.put("type", ObjectName.quote(type));
+            table.put("name", ObjectName.quote(name));
             table.put("id", String.valueOf(COUNTER.incrementAndGet()));
             return whiteboard.register(iface, bean, ImmutableMap.of(
                     "jmx.objectname",



Mime
View raw message