org.jboss.jms.serverless
Class Destinations

java.lang.Object
  extended byorg.jboss.jms.serverless.Destinations

public class Destinations
extends java.lang.Object

Collection of utilites to parse Destination names and generate Destination instances.


Method Summary
static Destination (src) createDestination(java.lang.String s)
          The method expects to get the string representation of a GroupTopic or GroupQueue and attempts to parse it and create the corresponding destination instance.
static java.lang.String stringRepresentation(Destination (src)  d)
          TO_DO: doesn't handle null names consistently
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDestination

public static Destination (src)  createDestination(java.lang.String s)
                                     throws JMSException (src) 
The method expects to get the string representation of a GroupTopic or GroupQueue and attempts to parse it and create the corresponding destination instance. A parsing error generates a JMSException.

Parameters:
s - - the string representation of a Destination. TO_DO: doesn't handle null names consistently
Throws:
JMSException (src)

stringRepresentation

public static java.lang.String stringRepresentation(Destination (src)  d)
                                             throws JMSException (src) 
TO_DO: doesn't handle null names consistently

Throws:
JMSException (src) - - if handling the destination throws exception.