Package org.apache.qpid.jms.message
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 Summary
Modifier and TypeMethodDescriptiontransform(jakarta.jms.Destination destination) Given a JMS Destination attempt to determine the type of JmsDestination to create.Given a destination name return a matching JmsDestination object.
-
Method Details
-
transform
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:
jakarta.jms.JMSException- if an error occurs during the transformation.
-
transform
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:
jakarta.jms.JMSException- if an error occurs while transforming the name.
-