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