org.jboss.mx.notification
Class NotificationFilterProxy

java.lang.Object
  extended byorg.jboss.mx.notification.NotificationFilterProxy
All Implemented Interfaces:
javax.management.NotificationFilter, Serializable

public class NotificationFilterProxy
extends Object
implements javax.management.NotificationFilter

NotificationFilterProxy wraps a real filter by the users to pass down to the mbean server so that as notification emitters apply the filter, the appropriate source can be set in the notification object before passing to the real filter.

Version:
$Revision: 1.1 $
Author:
Jeff Haynie
See Also:
Serialized Form

Constructor Summary
NotificationFilterProxy(javax.management.ObjectName source, javax.management.NotificationFilter delegate)
           
 
Method Summary
 javax.management.NotificationFilter getFilter()
          return the real NotificationFilter
 javax.management.ObjectName getSource()
          return the real ObjectName source
 boolean isNotificationEnabled(javax.management.Notification notification)
          This method is called before a notification is sent to see whether the listener wants the notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationFilterProxy

public NotificationFilterProxy(javax.management.ObjectName source,
                               javax.management.NotificationFilter delegate)
Method Detail

isNotificationEnabled

public boolean isNotificationEnabled(javax.management.Notification notification)
This method is called before a notification is sent to see whether the listener wants the notification.

Specified by:
isNotificationEnabled in interface javax.management.NotificationFilter
Parameters:
notification - the notification to be sent.
Returns:
true if the listener wants the notification, false otherwise

getSource

public javax.management.ObjectName getSource()
return the real ObjectName source

Returns:

getFilter

public javax.management.NotificationFilter getFilter()
return the real NotificationFilter

Returns:


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.