Skip to content

Serializator/spigot-with-guice-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spigot with Guice

A playground for trying out Guice with Spigot.

Within Spigot you often see the main class being used as accessor for many components within the plugin. Containing a getter for each of them.

Instantiation of dependencies is either uplifted to this main class (using manual Dependency Injection) or no Dependency Injection is performed and these dependencies are instantiated within the constructor of the dependent class.

In this playground I tried using Guice as IoC with a Spigot plugin, with primarily an example of registering a listener which uses a fictive state manager (as if this plugin is a minigame).

About

A playground for trying out Guice with Spigot

Resources

License

Stars

Watchers

Forks