[question] pre-configure route builders at build time
- Dominant language
- Java
- Stars
- 302
- Forks
- 232
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 114
Description
As today we do not perform so may optimizations and introspection to the routes so we may introduce a new annotation to give some hints to the build processor about in which phase a route is expected to be configured and some additional meat-data like classes that need to be registered for reflection, like:
```java
import org.apache.camel.quarkus.annotations.Configure;
import io.quarkus.deployment.annotations.ExecutionTime;
@Configure(ExecutionTime.STATIC_INIT, reflectiveClasses = { "com.acme.MyBean" })
public class MyRouteBuilder extends RouteBuilder {
@Override
public void configure() {
from("somewhere")
.bean("com.acme.MyBean", "doSomething");
}
}
```
toughs ?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no repository files or tests. Start by reviewing the proposed @Configure annotation, Quarkus ExecutionTime, and the build-processor approach described in the example. Done would mean an agreed design for build-time route configuration and reflective-class registration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100