ammachado opened a new pull request, #23566:
URL: https://github.com/apache/camel/pull/23566

   # Description
   
   Continues the 
[CAMEL-22894](https://issues.apache.org/jira/browse/CAMEL-22894) series of 
`SimpleFunctionExpression` refactoring.
   
   This PR extracts the four embedded-language functions (`jq`, `jsonpath`, 
`xpath`, `simpleJsonpath`) that previously lived inline in 
`SimpleFunctionExpression.createSimpleCustomLanguage()` into a new dedicated 
`QueryLanguageFunctionFactory`. The factory is registered in 
`SimpleFunctionDispatcher.BUILT_INS` alongside the factories introduced in the 
prior PRs (#23263, #23382, #23388, #23432, #23445, #23544).
   
   Also fixes a minor dead-code issue noted in the #23544 review: 
`PropertiesFunctionFactory.createCode()` had a `parts.length > 2` guard that 
can never be true because the preceding `split(":", 2)` call limits the result 
to at most 2 elements.
   
   `SimpleFunctionExpression` is now ~664 lines, down from the original 3,713.
   
   _Claude Code on behalf of Adriano Machado_
   
   # 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](https://issues.apache.org/jira/browse/CAMEL) 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to