Skip to content

GTI, a Dependency Injection experiment with custom annotations

Notifications You must be signed in to change notification settings

manudevelopia/gti

Repository files navigation

GTI

A Dependency Injection experimental library made with love to learn.

Why?

Dependency injection has been always to me a magical feature. As far as I get more used with we application and apis, this feature has become a must.

The more I use it the more I like until I decided to drop application frameworks (like Spring, Micronaut, etc) and I started using minimal frameworks or plain java, then I became aware that this feature was bounded to them with no easy alternative, so I decided to create a one with the minimal features that I need.

How to Use it

Add dependency to your Gradle build.gradle or Maven pom.xml

dependencies {
    implementation 'info.developia.gti:gti:1.0-SNAPSHOT'
}

Add Gti.startOn() with the main application class. This will return the instance of the class, and you can run your method to start application.

var application = Gti.inject().startOn(Application.class);
application.run();

You can find an example of application that has a Launcher ] that orchestrates application execution.

About

GTI, a Dependency Injection experiment with custom annotations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published