public void addNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
throws InstanceNotFoundException
{
if (listener == null)
{
throw new RuntimeOperationsException(new IllegalArgumentException("NotificationListener cannot be null"));
}
observed = secureObjectName(observed);
MBeanMetaData metadata = findMBeanMetaData(observed);
Object mbean = metadata.mbean;
if (!(mbean instanceof NotificationBroadcaster))
{
throw new RuntimeOperationsException(new IllegalArgumentException("MBean " + observed + " is not a NotificationBroadcaster"));
}
addNotificationListenerImpl(metadata, listener, filter, handback);
}