org.ws4d.java.dispatch
Interface MessageSelector
- All Known Implementing Classes:
- AllMessageSelector, DefaultMessageSelector
public interface MessageSelector
A MessageSlector
's purpose is to decide whether a
MessageListener
shall be informed about a given message or not. This
decision is made within the matches(Message)
method.
Method Summary |
boolean |
matches(Message msg)
Decides whether the given message meets the selection criteria of this
message selector instance. |
matches
boolean matches(Message msg)
- Decides whether the given message meets the selection criteria of this
message selector instance.
- Parameters:
msg
- the message to decide upon
- Returns:
true
, if the configured selection rules accept the
message, false
otherwise