Class JmsDefaultUnresolvedDestinationTransformer

java.lang.Object
org.apache.qpid.jms.message.JmsDefaultUnresolvedDestinationTransformer
All Implemented Interfaces:
JmsUnresolvedDestinationTransformer

public class JmsDefaultUnresolvedDestinationTransformer extends Object implements JmsUnresolvedDestinationTransformer
Default Destination resolver that will try and find a way to convert an unknown foreign JMS Destination object by looking for method in the object to identify the true type. For a String destination this class will always return a Queue.
  • Constructor Details

    • JmsDefaultUnresolvedDestinationTransformer

      public JmsDefaultUnresolvedDestinationTransformer()
  • Method Details

    • transform

      public JmsDestination transform(jakarta.jms.Destination destination) throws jakarta.jms.JMSException
      Description copied from interface: JmsUnresolvedDestinationTransformer
      Given a JMS Destination attempt to determine the type of JmsDestination to create.
      Specified by:
      transform in interface JmsUnresolvedDestinationTransformer
      Parameters:
      destination - the JMS destination that requires conversion to a JmsDestination type.
      Returns:
      a new JmsDestination instance to match the foreign destination.
      Throws:
      jakarta.jms.JMSException - if an error occurs during the transformation.
    • transform

      public JmsDestination transform(String destination) throws jakarta.jms.JMSException
      Description copied from interface: JmsUnresolvedDestinationTransformer
      Given a destination name return a matching JmsDestination object.
      Specified by:
      transform in interface JmsUnresolvedDestinationTransformer
      Parameters:
      destination - the name of the destination to create a JmsDestination type for.
      Returns:
      a new JmsDestination object that matches the given name.
      Throws:
      jakarta.jms.JMSException - if an error occurs while transforming the name.