djencks     2004/01/18 22:34:21

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel
                        Kernel.java
  Log:
  Make Kernel a NotificationBroadcaster so it can be an endpoint
  
  Revision  Changes    Path
  1.5       +19 -2     
incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java
  
  Index: Kernel.java
  ===================================================================
  RCS file: 
/home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/Kernel.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Kernel.java       17 Jan 2004 03:44:38 -0000      1.4
  +++ Kernel.java       19 Jan 2004 06:34:21 -0000      1.5
  @@ -63,10 +63,15 @@
   import java.net.URL;
   
   import javax.management.InstanceNotFoundException;
  +import javax.management.ListenerNotFoundException;
  +import javax.management.MBeanNotificationInfo;
   import javax.management.MBeanRegistrationException;
   import javax.management.MBeanServer;
   import javax.management.MBeanServerFactory;
   import javax.management.MalformedObjectNameException;
  +import javax.management.NotificationBroadcaster;
  +import javax.management.NotificationFilter;
  +import javax.management.NotificationListener;
   import javax.management.ObjectName;
   
   import org.apache.commons.logging.Log;
  @@ -99,7 +104,8 @@
    *
    * @version $Revision$ $Date$
    */
  -public class Kernel implements Serializable, KernelMBean {
  +public class Kernel implements Serializable, KernelMBean, 
NotificationBroadcaster {
  +
       /**
        * The JMX name used by a Kernel to register itself when it boots.
        */
  @@ -407,4 +413,15 @@
               }
           }
       }
  +
  +    public MBeanNotificationInfo[] getNotificationInfo() {
  +        return new MBeanNotificationInfo[0];
  +    }
  +
  +    public void addNotificationListener(NotificationListener listener, 
NotificationFilter filter, Object handback) throws IllegalArgumentException {
  +    }
  +
  +    public void removeNotificationListener(NotificationListener listener) 
throws ListenerNotFoundException {
  +    }
  +
   }
  
  
  

Reply via email to