ammachado opened a new pull request, #23569: URL: https://github.com/apache/camel/pull/23569
# Description Continues the [CAMEL-22894](https://issues.apache.org/jira/browse/CAMEL-22894) series of `SimpleFunctionExpression` refactoring (follows #23566). The `bean:` function previously had its ref/method/scope parsing logic duplicated in two private methods inside `SimpleFunctionExpression`: one for the runtime expression path and one for the CSimple code-generation path. This PR extracts both into a new `BeanFunctionFactory` with a shared `parseBeanRemainder` helper, eliminating the duplication and reducing `SimpleFunctionExpression` by ~100 more lines. `SimpleFunctionExpression` is now ~560 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]
