Skip to content

bootique/bootique-di

Repository files navigation

build test deploy

bootique-di

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

Standalone Example

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);