Class MittenLibCoreModule<T extends Plugin>
java.lang.Object
com.google.inject.AbstractModule
me.bristermitten.mittenlib.MittenLibCoreModule<T>
- Type Parameters:
T- the type of the plugin
- All Implemented Interfaces:
Module
Main Guice Module for MittenLib.
You probably shouldn't use this! You most likely want to create an Injector
with MittenLib.setup(), which automatically installs this module.
This module binds the following:
Pluginto the plugin type- The plugin type to the plugin instance
MittenLibConsumerto a new instance ofMittenLibConsumer, using the given plugin name
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
MittenLibCoreModule
Create a new MittenLibModule- Parameters:
plugin- the plugin instance
-
-
Method Details
-
configure
protected void configure()- Overrides:
configurein classAbstractModule
-