org.norther.tammi.core.util
Class RegistrationFilterSupport

java.lang.Object
  extended by org.norther.tammi.core.util.RegistrationFilterSupport
All Implemented Interfaces:
Serializable, NotificationFilter

public class RegistrationFilterSupport
extends Object
implements NotificationFilter, Serializable

NotificationFilter implementation filtering out other notifications than MBean registrations and optionally specified additional notifications.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
RegistrationFilterSupport()
          Constructs a new registration filter.
RegistrationFilterSupport(NotificationFilter filter)
          Constructs a new registration filter with a nested filter.
 
Method Summary
 NotificationFilter getNestedFilter()
          Gets the nested filter.
 boolean isNotificationEnabled(Notification notif)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationFilterSupport

public RegistrationFilterSupport()
Constructs a new registration filter.


RegistrationFilterSupport

public RegistrationFilterSupport(NotificationFilter filter)
Constructs a new registration filter with a nested filter.

Parameters:
filter - the nested filter.
Method Detail

isNotificationEnabled

public boolean isNotificationEnabled(Notification notif)
Specified by:
isNotificationEnabled in interface NotificationFilter

getNestedFilter

public NotificationFilter getNestedFilter()
Gets the nested filter.

Returns:
the nested filter or null.


Copyright © 2004 The Norther Organization. All rights reserved.