Skip to content

[backport camel-4.18.x] CAMEL-23547: camel-core - Properties component should eager start custom functions resolver#23303

Merged
davsclaus merged 1 commit into
camel-4.18.xfrom
backport/CAMEL-23547-to-camel-4.18.x
May 18, 2026
Merged

[backport camel-4.18.x] CAMEL-23547: camel-core - Properties component should eager start custom functions resolver#23303
davsclaus merged 1 commit into
camel-4.18.xfrom
backport/CAMEL-23547-to-camel-4.18.x

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Backport of d1afebe onto camel-4.18.x

Cherry-pick of commit d1afebe onto camel-4.18.x.

Original commit: d1afebe - CAMEL-23547: camel-core - Properties component should eager start custom functions resolver. Same for jbang that has a custom resolver.
Target branch: camel-4.18.x

Changes

  • DefaultPropertiesFunctionResolver: added doBuild() lifecycle method that calls ServiceHelper.buildService() on the registered functions, so they are properly built before use.
  • KameletMain: the DependencyDownloaderPropertiesFunctionResolver is now eagerly started (via resolver.start()) before being set on the PropertiesComponent, ensuring the custom functions resolver is fully initialised before properties resolution begins. Applied to both the normal and export code paths.

Conflict resolution notes

The backport required minor adaptation: the 3-argument constructor added on main does not exist on camel-4.18.x, so the existing 2-argument constructor is used instead. The function registration in the constructor (which was moved to doBuild() on main) is left as-is on 4.18.x to minimise the delta.

Claude Code on behalf of Claus Ibsen

…tom functions resolver. Same for jbang that has a custom resolver.
@davsclaus davsclaus merged commit 0da0d53 into camel-4.18.x May 18, 2026
3 checks passed
@davsclaus davsclaus deleted the backport/CAMEL-23547-to-camel-4.18.x branch May 18, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant