Skip to content

Mr-EmPee/LightWire

Repository files navigation

LightWire Maven Central Version

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>{version}</version>
</dependency>

Gradle Installation

implementation("io.github.mr-empee:lightwire:{version}")

Usage

  1. Initialize the IoC container inside you main class file
  private final LightWire iocContainer = LightWire.of(MyBootstrapClazz.class);
  1. Invoke the loading method to eagerly load all the classes annotated with @LightWired
    iocContainer.load();
  1. You can look at how it is used on MysticalBarriers, one of my projects!

About

Lightweight IoC Container

Topics

Resources

License

Stars

Watchers

Forks

Languages