restlet-framework-java icon indicating copy to clipboard operation
restlet-framework-java copied to clipboard

Missing support for a Dagger2 extension

Open kerbymart opened this issue 10 months ago • 1 comments

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

kerbymart avatar Apr 16 '24 03:04 kerbymart

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

thboileau avatar May 10 '24 09:05 thboileau