站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

NotificationFilterProxy (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


org.jboss.mx.notification
Class NotificationFilterProxy

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

public class NotificationFilterProxy
extends Object
implements 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.2 $
Author:
Jeff Haynie
See Also:
Serialized Form

Constructor Summary
NotificationFilterProxy(ObjectName source, NotificationFilter delegate)
           
 
Method Summary
 NotificationFilter getFilter()
          return the real NotificationFilter
 ObjectName getSource()
          return the real ObjectName source
 boolean isNotificationEnabled(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(ObjectName source,
                               NotificationFilter delegate)
Method Detail

isNotificationEnabled

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

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

getSource

public ObjectName getSource()
return the real ObjectName source

Returns:

getFilter

public NotificationFilter getFilter()
return the real NotificationFilter

Returns:


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