Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 887 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 887 Bytes

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!