クラス RabbitListenerEndpointRegistry

java.lang.ObjectSE
org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry
実装されたすべてのインターフェース:
EventListenerSEAwareDisposableBeanApplicationContextAwareApplicationListener<ContextRefreshedEvent>LifecyclePhasedSmartLifecycle

public class RabbitListenerEndpointRegistry extends ObjectSE implements DisposableBean, SmartLifecycle, ApplicationContextAware, ApplicationListener<ContextRefreshedEvent>
登録されたエンドポイントに必要な MessageListenerContainer インスタンスを作成します。また、特にアプリケーションコンテキストのライフサイクル内で、リスナーコンテナーのライフサイクルを管理します。

手動で作成された MessageListenerContainer とは異なり、レジストリによって管理されるリスナーコンテナーは、アプリケーションコンテキストでは Bean ではなく、オートワイヤーの候補にもなりません。管理目的でこのレジストリのリスナーコンテナーにアクセスする必要がある場合は、getListenerContainers() を使用します。特定のメッセージリスナーコンテナーにアクセスする必要がある場合は、エンドポイントの ID を指定して getListenerContainer(String) を使用します。

導入:
1.4
作成者:
Stephane Nicoll, Juergen Hoeller, Artem Bilan, Gary Russell
関連事項: