Interface JmsUnresolvedDestinationTransformer

  • All Known Implementing Classes:
    JmsDefaultUnresolvedDestinationTransformer

    public interface JmsUnresolvedDestinationTransformer
    Defines an interface for a handler object that will be called when the transformation of a JMS Destination object fails to determine the proper destination type to create.
    • Method Detail

      • transform

        JmsDestination transform​(javax.jms.Destination destination)
                          throws javax.jms.JMSException
        Given a JMS Destination attempt to determine the type of JmsDestination to create.
        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

        JmsDestination transform​(String destination)
                          throws javax.jms.JMSException
        Given a destination name return a matching JmsDestination object.
        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.