Class JmsDefaultUnresolvedDestinationTransformer

  • All Implemented Interfaces:
    JmsUnresolvedDestinationTransformer

    public class JmsDefaultUnresolvedDestinationTransformer
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JmsDestination transform​(jakarta.jms.Destination destination)
      Given a JMS Destination attempt to determine the type of JmsDestination to create.
      JmsDestination transform​(java.lang.String destination)
      Given a destination name return a matching JmsDestination object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmsDefaultUnresolvedDestinationTransformer

        public JmsDefaultUnresolvedDestinationTransformer()
    • Method Detail

      • 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​(java.lang.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.