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.
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