接口的使用
org.springframework.messaging.core.DestinationResolver
使用DestinationResolver的程序包 程序包 说明 org.springframework.messaging.core Defines interfaces and implementation classes for messaging templates.org.springframework.messaging.core中DestinationResolver的使用
实现DestinationResolver的org.springframework.messaging.core中的类 修饰符和类型 类 说明 class
BeanFactoryMessageChannelDestinationResolver
An implementation ofDestinationResolver
that interprets a destination name as the bean name of aMessageChannel
and looks up the bean in the configuredBeanFactory
.class
CachingDestinationResolverProxy<D>
DestinationResolver
implementation that proxies a target DestinationResolver, caching itsCachingDestinationResolverProxy.resolveDestination(java.lang.String)
results.返回DestinationResolver的org.springframework.messaging.core中的方法 修饰符和类型 方法 说明 DestinationResolver<D>
AbstractDestinationResolvingMessagingTemplate. getDestinationResolver()
Return the configured destination resolver.参数类型为DestinationResolver的org.springframework.messaging.core中的方法 修饰符和类型 方法 说明 void
AbstractDestinationResolvingMessagingTemplate. setDestinationResolver(DestinationResolver<D> destinationResolver)
Configure theDestinationResolver
to use to resolve String destination names into actual destinations of type<D>
.void
CachingDestinationResolverProxy. setTargetDestinationResolver(DestinationResolver<D> targetDestinationResolver)
Set the target DestinationResolver to delegate to.参数类型为DestinationResolver的org.springframework.messaging.core中的构造器 构造器 说明 CachingDestinationResolverProxy(DestinationResolver<D> targetDestinationResolver)
Create a new CachingDestinationResolverProxy using the given target DestinationResolver to actually resolve destinations.