GranitePowered/Granite — pull request #101 by Hidendra (2014-12-28 19:36:40+00:00)
Title: Implement guice plugin injections for Logger & DefaultConfig.

This also includes some cleanup & reordering for the guice module so that fields are better grouped.

This means that plugins can now add fields like these inside of their class w/ `@Plugin`:

@Inject
private Logger logger;

@Inject
@DefaultConfig(shared = true)
private File configFile;

@Inject
@DefaultConfig(sharedRoot = true)
private ConfigFile config;

This completes support for all of the Guice injections that Sponge (Forge) currently supports :smile:

LWC makes use of `@Inject` for `Game`, `Logger`, and `@ConfigDir`. If you want to test, here's [a build](https://artifacts.getlwc.org/Hidendra/LWC/235/235.1/mods/sponge/target/LWC-Sponge-5.0.0-SNAPSHOT.jar) and [source plugin class file](https://github.com/Hidendra/LWC/blob/5.0/mods/sponge/src/main/java/org/getlwc/sponge/SpongePlugin.java#L67).