geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r606967 - in /geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx: MBeanGBeanBridge.java MBeanServerKernelBridge.java
Date Wed, 26 Dec 2007 22:51:45 GMT
Author: gawor
Date: Wed Dec 26 14:51:43 2007
New Revision: 606967

URL: http://svn.apache.org/viewvc?rev=606967&view=rev
Log:
expose NotificationBroadcasterSupport to other gbeans so that they can fire custom notifications
(GERONIMO-3715)

Modified:
    geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanGBeanBridge.java
    geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanServerKernelBridge.java

Modified: geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanGBeanBridge.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanGBeanBridge.java?rev=606967&r1=606966&r2=606967&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanGBeanBridge.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanGBeanBridge.java
Wed Dec 26 14:51:43 2007
@@ -89,6 +89,10 @@
         return objectName;
     }
 
+    public NotificationBroadcasterSupport getNotificationBroadcasterSupport() {
+        return notificationBroadcaster;
+    }
+    
     public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName) throws
Exception {
         return objectName;
     }

Modified: geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanServerKernelBridge.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanServerKernelBridge.java?rev=606967&r1=606966&r2=606967&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanServerKernelBridge.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/jmx/MBeanServerKernelBridge.java
Wed Dec 26 14:51:43 2007
@@ -27,6 +27,7 @@
 import javax.management.JMRuntimeException;
 import javax.management.MBeanInfo;
 import javax.management.MBeanServer;
+import javax.management.NotificationBroadcasterSupport;
 import javax.management.ObjectName;
 
 import org.apache.commons.logging.Log;
@@ -93,6 +94,11 @@
         }
     }
 
+    public NotificationBroadcasterSupport getNotificationBroadcasterSupport(AbstractName
abstractName) {
+        MBeanGBeanBridge bridge = (MBeanGBeanBridge)registry.get(abstractName);
+        return (bridge == null) ? null : bridge.getNotificationBroadcasterSupport();
+    }
+    
     private void register(AbstractName abstractName) {
         try {
             MBeanGBeanBridge mbeanGBeanBridge;



Mime
View raw message