Skip to content

CAMEL-23549 Add a DelegatingDataTypeProcessor that delays resolution of fromType/toType to run time#23310

Merged
davsclaus merged 1 commit into
apache:mainfrom
cunningt:delegatingdatatypeprocessor
May 19, 2026
Merged

CAMEL-23549 Add a DelegatingDataTypeProcessor that delays resolution of fromType/toType to run time#23310
davsclaus merged 1 commit into
apache:mainfrom
cunningt:delegatingdatatypeprocessor

Conversation

@cunningt
Copy link
Copy Markdown
Contributor

Description

https://issues.apache.org/jira/browse/CAMEL-23549

org.apache.camel.processor.transformer.DataTypeProcessor sets fromType/toType at construction and provides methods to programatically set the fromType and to Type (setFromType/setToType) but kamelet templates require runtime type resolution in some scenarios like in data-type-action. We should have a Processor that can handle this scenario.

Target

  • [ x] I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • [x ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • [ x] I checked that each commit in the pull request has a meaningful subject line and body.

  • [x ] I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

Introduces a new DelegatingDataTypeProcessor that defers fromType/toType
resolution to runtime rather than compile time, enabling more flexible
data type transformations in dynamic routing scenarios.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the core label May 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • core/camel-core-processor

ℹ️ Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the test-dependents label to force testing all dependents.


⚙️ View full build and test results

@davsclaus davsclaus merged commit 14ef4db into apache:main May 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants