Ejemplo n.º 1
0
  /**
   * Adds a listener to a registered MBean.
   *
   * @param name The name of the MBean on which the listener should be added.
   * @param listener The object name of the listener which will handle the notifications emitted by
   *     the registered MBean.
   * @param filter The filter object. If filter is null, no filtering will be performed before
   *     handling notifications.
   * @param handback The context to be sent to the listener when a notification is emitted.
   * @exception InstanceNotFoundException The MBean name of the notification listener or of the
   *     notification broadcaster does not match any of the registered MBeans.
   */
  public void addNotificationListener(
      ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
      throws InstanceNotFoundException {

    interceptor.addNotificationListener(name, listener, filter, handback);
  }