spigot-injection | [ 1.8 - 1.20.x ] | DI library like Spring
0.1.4.3Spigot injection is a dependency injection library like spring framework
Spigot Injection
What is this library?
This is a dependency injection library that includes command, configuration, database, listener, scheduler and scanner system with auto-injection. Spigot-injection uses Basic Dependency Injection for dependency injection.
Getting Started
You can use this library with maven or gradle. You just need to add the dependency to your pom.xml or build.gradle file to use it. Then you can create your main class and start the injection process.
Prerequisites
- Spigot 1.8.8 or above
- Java Development Kit (JDK) 8 or above
Installation
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<!-- Core of dependency injection -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-core</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based config support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-config</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based command support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-command</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based listener support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-listener</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Annotation based scheduler support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-scheduler</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
<!-- Native database support -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-native</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
<!-- Hibernate database support (you need to add hibernate dependency to your project as extra) -->
<dependency>
<groupId>com.github.hakan-krgn.spigot-injection</groupId>
<artifactId>injection-database-hibernate</artifactId>
<version>0.1.4.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
Gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
//Core of dependency injection
implementation 'com.github.hakan-krgn.spigot-injection:injection-core:0.1.4.3'
//Annotation based config support
implementation 'com.github.hakan-krgn.spigot-injection:injection-config:0.1.4.3'
//Annotation based command support
implementation 'com.github.hakan-krgn.spigot-injection:injection-command:0.1.4.3'
//Annotation based listener support
implementation 'com.github.hakan-krgn.spigot-injection:injection-listener:0.1.4.3'
//Annotation based scheduler support
implementation 'com.github.hakan-krgn.spigot-injection:injection-scheduler:0.1.4.3'
//Native database support
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-native:0.1.4.3'
//Hibernate database support (you need to add hibernate dependency to your project as extra)
implementation 'com.github.hakan-krgn.spigot-injection:injection-database-hibernate:0.1.4.3'
}Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta