接口 JmsListenerConfigurer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface JmsListenerConfigurer
Optional interface to be implemented by a Spring managed bean willing to customize how JMS listener endpoints are configured. Typically used to define the defaultJmsListenerContainerFactory
to use or for registering JMS endpoints in a programmatic fashion as opposed to the declarative approach of using the @JmsListener
annotation.See @
EnableJms
for detailed usage examples.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
EnableJms
,JmsListenerEndpointRegistrar
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
configureJmsListeners(JmsListenerEndpointRegistrar registrar)
Callback allowing aJmsListenerEndpointRegistry
and specificJmsListenerEndpoint
instances to be registered against the givenJmsListenerEndpointRegistrar
.
方法详细资料
configureJmsListeners
void configureJmsListeners(JmsListenerEndpointRegistrar registrar)
Callback allowing aJmsListenerEndpointRegistry
and specificJmsListenerEndpoint
instances to be registered against the givenJmsListenerEndpointRegistrar
. The defaultJmsListenerContainerFactory
can also be customized.- 参数:
registrar
- the registrar to be configured