Commit 376bbaf
authored
Minimise types registered with avaje-inject for generated Routers (#690)
Use `@BeanTypes` on the generated routers for Jex and Helidon to
reduce the number of types registered with avaje-inject.
Helidon in particular, without this generates:
```
builder.isBeanAbsent(FooController$Route.class, HttpFeature.class,
TYPE_SupplierHttpFeature, Supplier.class, ServerLifecycle.class)
```
and with this change we get:
```
builder.isBeanAbsent(FooController$Route.class, HttpFeature.class)
```1 parent f1336b2 commit 376bbaf
File tree
2 files changed
+3
-1
lines changed- http-generator-helidon/src/main/java/io/avaje/http/generator/helidon/nima
- http-generator-jex/src/main/java/io/avaje/http/generator/jex
2 files changed
+3
-1
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments