Introduce AmqpListenerEndpoint infrastructure#3330
Merged
cppwfs merged 2 commits intospring-projects:mainfrom Feb 11, 2026
Merged
Introduce AmqpListenerEndpoint infrastructure#3330cppwfs merged 2 commits intospring-projects:mainfrom
AmqpListenerEndpoint infrastructure#3330cppwfs merged 2 commits intospring-projects:mainfrom
Conversation
* Add `AmqpListenerEndpoint` abstraction to connect `MessageListener` with `AmqpMessageListenerContainer` at runtime * Provide `SimpleAmqpListenerEndpoint` implementation for programmatic registration * Add `AmqpMessageListenerContainerFactory` for creating `AmqpMessageListenerContainer` at runtime * The `AmqpListenerEndpointRegistration` configuration container is for convenience when we would like to register several endpoints against same `AmqpMessageListenerContainerFactory` * Register infrastructure `AmqpListenerEndpointRegistry` bean which processes `AmqpListenerEndpoint`, uses `AmqpMessageListenerContainerFactory`, and registers `AmqpMessageListenerContainer` bean. The `AmqpListenerEndpointRegistry` bean depends (optionally) on the `AmqpDefaultConfiguration.DEFAULT_AMQP_LISTENER_CONTAINER_FACTORY_BEAN_NAME` bean provided in the target project configuration. If neither default, nor the specific for the `AmqpListenerEndpointRegistration`, then application context fails * Some optimization and properties order rearranging in the `AmqpMessageListenerContainer`
Member
Author
|
With this infra I'm very close to the There are no docs for this stuff yet since it might be changed moving forward this or other way. Giving you this as the next step before real annotation hardcore. Thanks |
cppwfs
requested changes
Feb 10, 2026
Contributor
cppwfs
left a comment
There was a problem hiding this comment.
This is awesome stuff!
Great work, just a couple of comments.
...rc/main/java/org/springframework/amqp/client/config/AmqpMessageListenerContainerFactory.java
Outdated
Show resolved
Hide resolved
...lient/src/main/java/org/springframework/amqp/client/config/AmqpListenerEndpointRegistry.java
Show resolved
Hide resolved
...lient/src/main/java/org/springframework/amqp/client/config/AmqpListenerEndpointRegistry.java
Outdated
Show resolved
Hide resolved
...ent/src/main/java/org/springframework/amqp/client/listener/AmqpMessageListenerContainer.java
Show resolved
Hide resolved
|
|
||
| /** | ||
| * The configuration model to represent a {@link MessageListener} | ||
| * with properties for target @{@link org.springframework.amqp.client.listener.AmqpMessageListenerContainer} |
Contributor
There was a problem hiding this comment.
@ is outside of {@link org.springframework.amqp.client.listener.AmqpMessageListenerContainer}
...rc/main/java/org/springframework/amqp/client/config/AmqpMessageListenerContainerFactory.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/springframework/amqp/client/config/AmqpMessageListenerContainerFactory.java
Show resolved
Hide resolved
spring-amqp-client/src/test/java/org/springframework/amqp/client/EnableAmqpTests.java
Show resolved
Hide resolved
* Add Javadocs for `AmqpListenerEndpointRegistry` methods * Use `Executor` as a property for `AmqpMessageListenerContainerFactory` API * Fix Javadoc in the `AmqpMessageListenerContainerFactory` * Fix bean name generation logic in the `AmqpListenerEndpointRegistry`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AmqpListenerEndpointabstraction to connectMessageListenerwithAmqpMessageListenerContainerat runtimeSimpleAmqpListenerEndpointimplementation for programmatic registrationAmqpMessageListenerContainerFactoryfor creatingAmqpMessageListenerContainerat runtimeAmqpListenerEndpointRegistrationconfiguration container is for convenience when we would like to register several endpoints against sameAmqpMessageListenerContainerFactoryAmqpListenerEndpointRegistrybean which processesAmqpListenerEndpoint, usesAmqpMessageListenerContainerFactory, and registersAmqpMessageListenerContainerbean.The
AmqpListenerEndpointRegistrybean depends (optionally) on theAmqpDefaultConfiguration.DEFAULT_AMQP_LISTENER_CONTAINER_FACTORY_BEAN_NAMEbean provided in the target project configuration.If neither default, nor the specific for the
AmqpListenerEndpointRegistration, then application context failsAmqpMessageListenerContainer