VoodooDI is developed as part of an educational blog series, explaining the inner workings of DI frameworks.
- Part 1: Understanding Dependency Injection - IoC
- Part 2: Understanding Dependency Injection - PostConstruct and Constructor Injection
Fork and/or clone the project.
$ git clone https://github.com/sknitelius/VoodooDI.git
Using VoodooDI is simple matter of including the dependency in your pom.
Latest stable version:
<dependency>
<groupId>science.raketen.voodoo</groupId>
<artifactId>VoodooDI</artifactId>
<version>0.0.3</version>
</dependency>
Latest snapshot:
<dependency>
<groupId>science.raketen.voodoo</groupId>
<artifactId>VoodooDI</artifactId>
<version>0.0.4-SNAPSHOT</version>
</dependency>
Starting Voodoo Container:
public static void main(String[] args) throws IOException {
Voodoo container = Voodoo.initalize();
MyApp myApp = container.instance(MyApp.class);
...
}
This software is provided under the Apache 2.0 license, read the LICENSE
file for details.