org.ws4d.java.dispatch
Class AllMessageSelector
java.lang.Object
org.ws4d.java.dispatch.AllMessageSelector
- All Implemented Interfaces:
- MessageSelector
public class AllMessageSelector
- extends java.lang.Object
- implements MessageSelector
Simple message selector implementation, which matches every message
regardless of its concrete type or other message properties.
Method Summary |
boolean |
matches(Message msg)
Always returns true regardless of the type or contents of
the given message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final MessageSelector INSTANCE
- A singleton instance of this class.
AllMessageSelector
public AllMessageSelector()
matches
public boolean matches(Message msg)
- Always returns
true
regardless of the type or contents of
the given message.
- Specified by:
matches
in interface MessageSelector
- Parameters:
msg
- the message to decide upon
- Returns:
true
, if the configured selection rules accept the
message, false
otherwise