Package org.vaadin.spring.events
Interface EventBusListenerMethodFilter
- All Known Implementing Classes:
NoEventBusListenerMethodFilter
public interface EventBusListenerMethodFilter
A method annotated with @EventBusListenerMethod will be invoked if it is
subscribed to the EventBus that published the Event
(or Object payload). That method will oftentimes employ filtering code
in the method internals, because of the possibility that multiple annotated methods
might listen to same the Event.
As a convenience, an implementation of this filter may be defined in
EventBusListenerMethod.filter()
and stand in place of such filtering code.
- Author:
- Chris Phillipson (fastnsilver@gmail.com)
-
Method Summary
-
Method Details
-
filter
Criteria used to influence when an@EventBusListenerMethodannotated method with thisfilterdefined will execute- Parameters:
event- EventBus event- Returns:
- true if filtering condition met; false otherwise
-