Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bootique/bootique-di
- Owner: bootique
- License: apache-2.0
- Created: 2018-04-01T11:28:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T09:55:34.000Z (9 months ago)
- Last Synced: 2024-04-18T14:13:47.291Z (9 months ago)
- Topics: bootique, dependency-injection-container, injection
- Language: Java
- Homepage: https://bootique.io
- Size: 600 KB
- Stars: 7
- Watchers: 10
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```