org.ow2.orchestra.pvm.internal.util
Class FilterListener
java.lang.Object
org.ow2.orchestra.pvm.internal.util.FilterListener
- All Implemented Interfaces:
- Listener
public class FilterListener
- extends Object
- implements Listener
listener that only delegates events to a given listener if they pass the
filter based on event names.
listener
protected Listener listener
eventNames
protected List<String> eventNames
FilterListener
public FilterListener(Listener listener,
String eventName)
FilterListener
public FilterListener(Listener listener,
List<String> eventNames)
event
public void event(Object source,
String name,
Object info)
- Description copied from interface:
Listener
- is called by the
Observable when an event is fired.
- Specified by:
event in interface Listener
- Parameters:
source - Observable that fired the event.name - name of the event.info - more information about the fired event. See the concrete
observable docs for more information about what information is
provided.
isFiltered
public boolean isFiltered(String eventName)
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2011 OW2 Consortium. All Rights Reserved.