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 java.lang.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 Constructor Description JmsDefaultUnresolvedDestinationTransformer()
-
Method Summary
All Methods Instance Methods Concrete 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
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
public JmsDestination transform(java.lang.String destination) throws jakarta.jms.JMSException
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.
-
-