Skip to content

Conversation

@rbygrave
Copy link
Contributor

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)

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)
```
@rbygrave rbygrave self-assigned this Dec 10, 2025
@rbygrave rbygrave requested a review from SentryMan December 10, 2025 08:31
@SentryMan SentryMan merged commit 376bbaf into master Dec 10, 2025
6 checks passed
@SentryMan SentryMan deleted the feature/minimise-router-types branch December 10, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants