LightWire
A lightweight InvesrionOfControl container.
Share and create instances of your classes with ease!
Maven Installation
Code (Text):
<dependency>
<groupId>io.github.mr-empee</groupId>
<artifactId>lightwire</artifactId>
<version>0.0.1</version>
</dependency>
Gradle Installation
Code (Text):
implementation("io.github.mr-empee:lightwire:0.0.1")
Usage
1. Initialize the IoC container inside you main class file
Code (Java):
private
final LightWire iocContainer
= LightWire.
of
(getClass
(
).
getPackage
(
)
)
;
2. Invoke the loading method to eagerly load all the classes annotated with
@LightWired
Code (Text):
iocContainer.load();
3. You can look at how it is used on
MysticalBarriers, one of my projects!