restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
649 stars 284 forks source link

Missing support for a Dagger2 extension #1411

Open kerbymart opened 6 months ago

kerbymart commented 6 months ago

The framework includes an extension for Guice for dependency injection, however, it lacks an extension for Dagger2.

Reflection-based dependency injection (DI) can impede the creation of a high-performance, native-image packaged module, such as an embedded Restlet server compiled using GraalVM.

You can find a proof of concept (POC) for using Dagger2 with Restlet by following this link: https://github.com/kerbymart/restlet-appstart/blob/909a5c5b8dd7ed8e3272e1ee2776beefab98f092/src/main/java/org/example/Main.java#L59

thboileau commented 5 months ago

thanks a lot @kerbymart !! we'll consider it for the incoming 2.5 version!