Skip to content

[#4721] Allow EventProcessorDefinitions to supply an event source for a subscribing processor#4722

Merged
hatzlj merged 3 commits into
mainfrom
enhancement/4721/subscribing-processors-source-config-improvement
Jul 8, 2026
Merged

[#4721] Allow EventProcessorDefinitions to supply an event source for a subscribing processor#4722
hatzlj merged 3 commits into
mainfrom
enhancement/4721/subscribing-processors-source-config-improvement

Conversation

@hatzlj

@hatzlj hatzlj commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This PR adjusts the SpringCustomizations.SpringSubscribingEventProcessingModuleCustomization to allow subsequent customizations to supply a SubscribableEventSource by making the source only mandatory if a name is explicitly set via the EventProcessorSettings#source().

Now, if the EventProcessorSettings#source() is not set or empty, the message source is only applied if resolvable from the config (i.e. if a type level source like the EventBus is configured), but no exception is thrown as before.

If the EventProcessorSettings#source() is explicitly set, the behaviour stays as before that a SubscribablEventSource with that exact name must be resolvable from the configuration, otherwise an exception is thrown.

Resolves #4721

@hatzlj hatzlj added this to the Release 5.2.0 milestone Jul 7, 2026
@hatzlj hatzlj self-assigned this Jul 7, 2026
@hatzlj hatzlj requested a review from a team as a code owner July 7, 2026 20:51
@hatzlj hatzlj requested review from MateuszNaKodach, jangalinski and zambrovski and removed request for a team July 7, 2026 20:51
@hatzlj hatzlj added Type: Enhancement Use to signal an issue enhances an already existing feature of the project. Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. labels Jul 7, 2026
@hatzlj hatzlj force-pushed the enhancement/4721/subscribing-processors-source-config-improvement branch from e1b5dd7 to 7c4fe71 Compare July 7, 2026 21:16

@laura-devriendt-lemon laura-devriendt-lemon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just suggestion

@smcvb smcvb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, otherwise looks good to me.

hatzlj added 3 commits July 8, 2026 15:04
…ProcessorSettings#source()` is explicitly set

To allow subsequent customizations supply a `SubscribablEventSource`, the SpringCustomizations.SpringSubscribingEventProcessingModuleCustomization is adjusted so that the source is only mandatory if a name is explicitly set via the `EventProcessorSettings#source()`.

Now, if the `EventProcessorSettings#source()` is not set or empty, the message source is only applied if resolvable from the config (i.e. if a type level source like the `EventBus` is configured), but no exception is thrown as before.

If the `EventProcessorSettings#source()` is explicitly set, the behaviour stays as before that a `SubscribablEventSource` with that exact name must be resolvable from the configuration, otherwise an exception is thrown.
…validation

To make debugging easier, include the event processor name in the validation exception thrown if the event source is not set in a SubscribingEventProcessorConfiguration.
…upplied event sources

 Cover the case when an explicitly configured event source should be supplied via an EventProcessorDefinition instead of failing in the SpringCustomization due to the type-based Event Source not being unique.
@hatzlj hatzlj force-pushed the enhancement/4721/subscribing-processors-source-config-improvement branch from 7c4fe71 to 1ca5742 Compare July 8, 2026 13:04
@hatzlj hatzlj enabled auto-merge July 8, 2026 13:04
@hatzlj hatzlj merged commit fc18c01 into main Jul 8, 2026
7 checks passed
@hatzlj hatzlj deleted the enhancement/4721/subscribing-processors-source-config-improvement branch July 8, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Enhancement Use to signal an issue enhances an already existing feature of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unset source setting prevents EventProcessorDefinition from supplying a subscribing processor's event source

3 participants