Package org.apache.qpid.jms.message
Interface JmsUnresolvedDestinationTransformer
-
- All Known Implementing Classes:
JmsDefaultUnresolvedDestinationTransformer
public interface JmsUnresolvedDestinationTransformerDefines 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsDestinationtransform(jakarta.jms.Destination destination)Given a JMS Destination attempt to determine the type of JmsDestination to create.JmsDestinationtransform(java.lang.String destination)Given a destination name return a matching JmsDestination object.
-
-
-
Method Detail
-
transform
JmsDestination transform(jakarta.jms.Destination destination) throws jakarta.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:
jakarta.jms.JMSException- if an error occurs during the transformation.
-
transform
JmsDestination transform(java.lang.String destination) throws jakarta.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:
jakarta.jms.JMSException- if an error occurs while transforming the name.
-
-