-
Notifications
You must be signed in to change notification settings - Fork 12
OrMessageFilter
jpgcc edited this page Dec 29, 2014
·
3 revisions
This feedback message filter matches messages that are matched by at least one of the added filters (thus implementing a logical OR operation) — thus allowing one to flexibly compose existing filters.
The filters to be composed can be provided in the constructor:
IFeedbackMessageFilter filter = new OrMessageFilter(
new ComponentFeedbackMessageFilter(someComponent),
new ComponentFeedbackMessageFilter(someOtherComponent)
);
or they can be added (chaining supported):
IFeedbackMessageFilter filter = new OrMessageFilter()
.add(new ComponentFeedbackMessageFilter(someComponent))
.add(new ComponentFeedbackMessageFilter(someOtherComponent));