Class GenericListenerEndpointRegistry<C extends MessageListenerContainer,E extends ListenerEndpoint<C>>

java.lang.Object
org.springframework.pulsar.config.GenericListenerEndpointRegistry<C,E>
Type Parameters:
C - listener container type.
E - listener endpoint type.
All Implemented Interfaces:
EventListener, Aware, DisposableBean, ApplicationContextAware, ApplicationListener<ContextRefreshedEvent>, Lifecycle, Phased, SmartLifecycle, PulsarListenerContainerRegistry
Direct Known Subclasses:
PulsarListenerEndpointRegistry, ReactivePulsarListenerEndpointRegistry

Creates the necessary container instances for the registered endpoints. Also manages the lifecycle of the listener containers, in particular within the lifecycle of the application context.

Contrary to containers created manually, listener containers managed by registry are not beans in the application context and are not candidates for autowiring. Use getListenerContainers() if you need to access this registry's listener containers for management purposes. If you need to access to a specific message listener container, use getListenerContainer(String) with the id of the endpoint.

Author:
Soby Chacko, Christophe Bornet, Chris Bono