org.ws4d.java.dispatch
Class AllMessageSelector

java.lang.Object
  extended by 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.


Field Summary
static MessageSelector INSTANCE
          A singleton instance of this class.
 
Constructor Summary
AllMessageSelector()
           
 
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
 

Field Detail

INSTANCE

public static final MessageSelector INSTANCE
A singleton instance of this class.

Constructor Detail

AllMessageSelector

public AllMessageSelector()
Method Detail

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