Class 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 Detail

      • JmsDefaultUnresolvedDestinationTransformer

        public JmsDefaultUnresolvedDestinationTransformer()
    • Method Detail

      • transform

        public JmsDestination transform​(javax.jms.Destination destination)
                                 throws javax.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:
        javax.jms.JMSException - if an error occurs during the transformation.
      • transform

        public JmsDestination transform​(String destination)
                                 throws javax.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:
        javax.jms.JMSException - if an error occurs while transforming the name.