org.jboss.mq.selectors
Class Selector

java.lang.Object
  extended byorg.jboss.mq.selectors.Selector

public class Selector
extends java.lang.Object

This class implements a Message Selector.


Field Summary
 java.util.HashMap identifiers
           
 java.lang.Object result
           
 java.lang.String selector
           
 
Constructor Summary
Selector(java.lang.String sel)
           
 
Method Summary
static java.lang.Class getSelectorParserClass()
          Get the class that implements the ISelectorParser interface to be used by Selector instances.
static void setSelectorParserClass(java.lang.Class parserClass)
          Set the class that implements the ISelectorParser interface to be used by Selector instances.
 boolean test(SpyMessage.Header (src)  mes)
           
 boolean test(SpyMessage (src)  msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selector

public java.lang.String selector

identifiers

public java.util.HashMap identifiers

result

public java.lang.Object result
Constructor Detail

Selector

public Selector(java.lang.String sel)
         throws InvalidSelectorException (src) 
Method Detail

getSelectorParserClass

public static java.lang.Class getSelectorParserClass()
Get the class that implements the ISelectorParser interface to be used by Selector instances.


setSelectorParserClass

public static void setSelectorParserClass(java.lang.Class parserClass)
Set the class that implements the ISelectorParser interface to be used by Selector instances.

Parameters:
parserClass - the ISelectorParser implementation. This must have a public no-arg constructor.

test

public boolean test(SpyMessage.Header (src)  mes)
             throws JMSException (src) 
Throws:
JMSException (src)

test

public boolean test(SpyMessage (src)  msg)
             throws JMSException (src) 
Throws:
JMSException (src)