Build time optimize HeaderSelectorProducer
- Dominant language
- Java
- Stars
- 302
- Forks
- 232
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 114
Description
Some Camel components uses HeaderSelectorProducer which does use reflection to discover annotations on methods on the producer class.
We can use camel quarkus to do build time optimization by scanning for those annotations (such as InvokeOnHeaders) and then pre configure this on the producer.
This may require changes in camel-core in the HeaderSelectorProducer to support such use-case.
This will also help native mode as there are no reflection and we can likely remove such rules for the extensions that uses this header selector producer.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading HeaderSelectorProducer in camel-core and tracing how Camel Quarkus handles annotations such as InvokeOnHeaders. Determine where build-time scanning can preconfigure the producer instead of reflection. Done means the relevant reflection work is replaced for supported components and native mode no longer needs the corresponding reflection rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100