Package org.apache.qpid.jms.message
Class JmsDefaultUnresolvedDestinationTransformer
java.lang.Object
org.apache.qpid.jms.message.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 Summary
Constructors -
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.
-
Constructor Details
-
JmsDefaultUnresolvedDestinationTransformer
public JmsDefaultUnresolvedDestinationTransformer()
-
-
Method Details
-
transform
public JmsDestination transform(jakarta.jms.Destination destination) throws jakarta.jms.JMSException Description copied from interface:JmsUnresolvedDestinationTransformerGiven a JMS Destination attempt to determine the type of JmsDestination to create.- Specified by:
transformin interfaceJmsUnresolvedDestinationTransformer- 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
Description copied from interface:JmsUnresolvedDestinationTransformerGiven a destination name return a matching JmsDestination object.- Specified by:
transformin interfaceJmsUnresolvedDestinationTransformer- 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.
-