Class AmqpListenerEndpointRegistry
java.lang.Object
org.springframework.amqp.client.config.AmqpListenerEndpointRegistry
- All Implemented Interfaces:
Aware, ApplicationContextAware
An infrastructure bean to process
AmqpListenerEndpointRegistration instances.- Since:
- 4.1
- Author:
- Artem Bilan
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpListenerEndpointRegistry(AmqpMessageListenerContainerFactory amqpMessageListenerContainerFactory) -
Method Summary
Modifier and TypeMethodDescriptionregisterListenerEndpoint(AmqpListenerEndpoint endpoint) RegisterAmqpMessageListenerContainerbean based on the providedAmqpListenerEndpoint.registerListenerEndpoint(AmqpMessageListenerContainerFactory containerFactory, AmqpListenerEndpoint endpoint) RegisterAmqpMessageListenerContainerbean based on the providedAmqpListenerEndpointandAmqpMessageListenerContainerFactory.registerListenerEndpoints(AmqpListenerEndpointRegistration registration) RegisterAmqpMessageListenerContainerbeans based on the providedAmqpListenerEndpointRegistration.voidsetApplicationContext(ApplicationContext applicationContext)
-
Constructor Details
-
AmqpListenerEndpointRegistry
public AmqpListenerEndpointRegistry() -
AmqpListenerEndpointRegistry
public AmqpListenerEndpointRegistry(AmqpMessageListenerContainerFactory amqpMessageListenerContainerFactory)
-
-
Method Details
-
setApplicationContext
- Specified by:
setApplicationContextin interfaceApplicationContextAware- Throws:
BeansException
-
registerListenerEndpoints
public AmqpListenerEndpointRegistry registerListenerEndpoints(AmqpListenerEndpointRegistration registration) RegisterAmqpMessageListenerContainerbeans based on the providedAmqpListenerEndpointRegistration.- Parameters:
registration- the registration with endpoints to process.- Returns:
- this registry.
-
registerListenerEndpoint
RegisterAmqpMessageListenerContainerbean based on the providedAmqpListenerEndpoint. The defaultAmqpMessageListenerContainerFactoryis required in this case.- Parameters:
endpoint- the endpoint to process from.- Returns:
- this registry.
-
registerListenerEndpoint
public AmqpListenerEndpointRegistry registerListenerEndpoint(AmqpMessageListenerContainerFactory containerFactory, AmqpListenerEndpoint endpoint) RegisterAmqpMessageListenerContainerbean based on the providedAmqpListenerEndpointandAmqpMessageListenerContainerFactory.- Parameters:
containerFactory- the factory to create a message listener container from.endpoint- the endpoint to process from.- Returns:
- this registry.
-