org.jboss.mx.remoting.event
Class CompositeEventFilter

java.lang.Object
  extended by org.jboss.mx.remoting.event.CompositeEventFilter
All Implemented Interfaces:
Serializable, NotificationFilter

public class CompositeEventFilter
extends Object
implements NotificationFilter

Composite-pattern based filter

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

Field Summary
static int AND
           
protected  NotificationFilter[] filters
           
protected  int operator
           
static int OR
           
 
Constructor Summary
CompositeEventFilter(NotificationFilter[] filters)
          create a filter composite of filters using the AND operator
CompositeEventFilter(NotificationFilter[] filters, int operator)
          create a filter composite of filters using the specific operator
 
Method Summary
 boolean isNotificationEnabled(Notification event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AND

public static final int AND
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values

operator

protected int operator

filters

protected NotificationFilter[] filters
Constructor Detail

CompositeEventFilter

public CompositeEventFilter(NotificationFilter[] filters,
                            int operator)
create a filter composite of filters using the specific operator


CompositeEventFilter

public CompositeEventFilter(NotificationFilter[] filters)
create a filter composite of filters using the AND operator

Method Detail

isNotificationEnabled

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


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.