davsclaus opened a new pull request, #24760: URL: https://github.com/apache/camel/pull/24760
## Summary _Claude Code on behalf of davsclaus_ - Fix `class:` endpoint ignoring the `scope` option: default Singleton scope was creating a new bean instance per exchange, and Prototype scope with `bean.xxx` options silently behaved as Singleton - In `BeanEndpoint.doInit()`, apply scope-aware logic when a `BeanHolder` is pre-set by `ClassComponent`: cache the instance for Singleton, use a type-based holder for Prototype - In `ClassComponent.createEndpoint()`, store a copy of the bean options map so `setProperties()` doesn't consume the options needed for per-exchange property binding in Prototype scope Fixes: https://issues.apache.org/jira/browse/CAMEL-24100 ## Test plan - [x] `ClassComponentScopeTest` — 4 new tests covering all scope x options combinations - [x] All 350+ existing bean component tests pass - [x] `BeanSingletonTest` (existing scope test for `bean:` component) passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.6 <[email protected]> -- 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]
