Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bootique/bootique-di

Bootique core DI framework
https://github.com/bootique/bootique-di

bootique dependency-injection-container injection

Last synced: about 2 months ago
JSON representation

Bootique core DI framework

Awesome Lists containing this project

README

        

[![build test deploy](https://github.com/bootique/bootique-di/actions/workflows/maven.yml/badge.svg)](https://github.com/bootique/bootique-di/actions/workflows/maven.yml)

# 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](https://github.com/andrus/di-comparison#results-java-8) dependency injection (DI) engine used by Bootique framework. Can be used in the context of Bootique or as a standalone DI engine.

## Docs

- [Docs](https://bootique.io/docs/2.x/bootique-docs/#_bqruntime_and_di) (in the context of Bootique)
- [Migration from Guice](https://bootique.io/docs/2.x/migrate-from-guice/)

## Standalone Example

Starting and using Bootique DI
```java
BQModule m = binder -> binder.bind(MyService.class).to(MySericeImpl.class);
Injector injector = DIBootstrap.createInjector(m);
MyService s = injector.getInstance(MyService.class);
```