Since Bootique 3, bootique-di
is no longer developed as a standalone module, and is instead included in Bootique core. So this GitHub project is retired, while the DI functionality continues to live and thrive at https://github.com/bootique/bootique .
A lightweight and fast dependency injection (DI) engine used by Bootique framework. Can be used in the context of Bootique or as a standalone DI engine.
- Docs (in the context of Bootique)
- Migration from Guice
Starting and using Bootique DI
BQModule m = binder -> binder.bind(MyService.class).to(MySericeImpl.class);
Injector injector = DIBootstrap.createInjector(m);
MyService s = injector.getInstance(MyService.class);