gnodet commented on PR #25815: URL: https://github.com/apache/camel/pull/25815#issuecomment-5479311246
_Claude Code on behalf of gnodet_ Good point @davsclaus — the two-object composition is fine for the SPI layer but too much ceremony for the common case (especially unit tests and DSL). Created https://issues.apache.org/jira/browse/CAMEL-24557 to track adding a low-code approach. Some ideas for that follow-up: 1. **Factory methods** on `KeyValueIdempotentRepository` / `KeyValueAggregationRepository` that default to `MemoryKeyValueRepository` internally, e.g. `KeyValueIdempotentRepository.memory()` — single call, no class names needed 2. **`@Metadata` + `@Configurer` on the adapter classes** so the DSL can auto-discover and construct them as beans without explicit constructor wiring 3. **Keep the deprecated classes working** as-is for now — they are deprecated, not removed, so existing tests and DSL configs continue to work unchanged This PR only marks the old classes as deprecated. The low-code simplification will come as a separate PR. -- 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]
