类 DynamicDestinationResolver
- java.lang.Object
- org.springframework.jms.support.destination.DynamicDestinationResolver
- 所有已实现的接口:
DestinationResolver
public class DynamicDestinationResolver extends Object implements DestinationResolver
SimpleDestinationResolverimplementation resolving destination names as dynamic destinations.- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
- 另请参阅:
Session.createQueue(java.lang.String),Session.createTopic(java.lang.String)
构造器概要
构造器 构造器 说明 DynamicDestinationResolver()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DestinationresolveDestinationName(Session session, String destinationName, boolean pubSubDomain)Resolve the specified destination name as a dynamic destination.protected QueueresolveQueue(Session session, String queueName)Resolve the given destination name to aQueue.protected TopicresolveTopic(Session session, String topicName)Resolve the given destination name to aTopic.
构造器详细资料
DynamicDestinationResolver
public DynamicDestinationResolver()
方法详细资料
resolveDestinationName
public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException
Resolve the specified destination name as a dynamic destination.- 指定者:
resolveDestinationName在接口中DestinationResolver- 参数:
session- the current JMS SessiondestinationName- the name of the destinationpubSubDomain-trueif the domain is pub-sub,falseif P2P- 返回:
- the JMS destination (either a topic or a queue)
- 抛出:
JMSException- if resolution failed- 另请参阅:
resolveTopic(javax.jms.Session, String),resolveQueue(javax.jms.Session, String)
resolveTopic
protected Topic resolveTopic(Session session, String topicName) throws JMSException
Resolve the given destination name to aTopic.- 参数:
session- the current JMS SessiontopicName- the name of the desiredTopic- 返回:
- the JMS
Topic - 抛出:
JMSException- if resolution failed- 另请参阅:
Session.createTopic(String)
resolveQueue
protected Queue resolveQueue(Session session, String queueName) throws JMSException
Resolve the given destination name to aQueue.- 参数:
session- the current JMS SessionqueueName- the name of the desiredQueue- 返回:
- the JMS
Queue - 抛出:
JMSException- if resolution failed- 另请参阅:
Session.createQueue(String)