org.apache.xbean.kernel.standard
Class KernelMonitorBroadcaster

java.lang.Object
  extended byorg.apache.xbean.kernel.standard.KernelMonitorBroadcaster
All Implemented Interfaces:
KernelMonitor

public class KernelMonitorBroadcaster
extends java.lang.Object
implements KernelMonitor

The KernelMonitorBroadcaster broadcasts kernel events to registered kernel monitors.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Constructor Summary
KernelMonitorBroadcaster()
           
 
Method Summary
 void addKernelMonitor(KernelMonitor kernelMonitor)
          Adds a kernel monitor.
 void removeKernelMonitor(KernelMonitor kernelMonitor)
          Removes a kernel monitor.
 void serviceNotificationError(ServiceMonitor serviceMonitor, ServiceEvent serviceEvent, java.lang.Throwable throwable)
          An error occured with notifiying a service monitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelMonitorBroadcaster

public KernelMonitorBroadcaster()
Method Detail

addKernelMonitor

public void addKernelMonitor(KernelMonitor kernelMonitor)
Adds a kernel monitor.

Parameters:
kernelMonitor - the kernel monitor to add

removeKernelMonitor

public void removeKernelMonitor(KernelMonitor kernelMonitor)
Removes a kernel monitor.

Parameters:
kernelMonitor - the kernel monitor to remove

serviceNotificationError

public void serviceNotificationError(ServiceMonitor serviceMonitor,
                                     ServiceEvent serviceEvent,
                                     java.lang.Throwable throwable)
An error occured with notifiying a service monitor.

Specified by:
serviceNotificationError in interface KernelMonitor
Parameters:
serviceMonitor - the monitor that threw the exception
serviceEvent - the event that was being processed
throwable - the exception that was thrown


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.