Package org.jgrapes.core
Interface InvocationFilter
- All Known Implementing Classes:
RequestHandler.Evaluator.Scope
public interface InvocationFilter
Some
HandlerScope
implementations use only a subset of the
properties of the events passed to
HandlerScope.includes(Eligible, Eligible[])
for
evaluating the result.This is done in order to avoid an excessive number of entries in the table that maps events (and channels) to handlers.
When dispatching an event, the superfluous values from the mapping table
must be filtered. HandlerScope
implementations that do not
take all properties of an event into account in their implementation
of HandlerScope.includes(Eligible, Eligible[])
must therefore
also implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Matches the given event against the criteria for events, taking properties into account that were left out byHandlerScope.includes(Eligible, Eligible[])
.
-
Method Details
-
includes
Matches the given event against the criteria for events, taking properties into account that were left out byHandlerScope.includes(Eligible, Eligible[])
.Note that this method is called only with events that have passed the invocation of
HandlerScope.includes(Eligible, Eligible[])
. It is therefore not required to re-test conditions already checked byHandlerScope.includes(Eligible, Eligible[])
.- Parameters:
event
- the event- Returns:
- true, if successful
-