Sueta

LightWire - IoC

0.0.1

A lightweigth IoC container, now dependency injection is simpler than ever!

·Plugin

LightWire
A lightweight InvesrionOfControl container.
Share and create instances of your classes with ease!

Maven Installation

<dependency>
    <groupId>io.github.mr-empee</groupId>
    <artifactId>lightwire</artifactId>
    <version>0.0.1</version>
</dependency>

Gradle Installation

implementation("io.github.mr-empee:lightwire:0.0.1")

Usage

1. Initialize the IoC container inside you main class file

private final LightWire iocContainer = LightWire.of(getClass().getPackage());

2. Invoke the loading method to eagerly load all the classes annotated with @LightWired

iocContainer.load();

3. You can look at how it is used on MysticalBarriers, one of my projects!

Similar projects

Plugin →