Skip to content

ParadoxPixel/JaDI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Dependency Injection

Getting Started

Add the dependency to your project

  <repositories>
    <repository>
      <id>jitpack.io</id>
      <url>https://www.jitpack.io</url>
    </repository>
  </repositories>

  <dependencies>
  	<dependency>
	    <groupId>com.github.paradoxpixel</groupId>
	    <artifactId>jadi</artifactId>
	    <version>1.0.2</version>
	  </dependency>
  </dependencies>

Then you can start using it by getting a new instance

JaDI jadi = new JaDI();
...
CompletableFuture<MyClass> future=jadi.resolve(Type.of(MyClass.class));