Package com.thewinterframework.service
Class ServiceModule
java.lang.Object
com.thewinterframework.wire.module.AbstractProcessorModule
com.thewinterframework.service.ServiceModule
- All Implemented Interfaces:
com.google.inject.Module,PluginModule,ProcessorModule
Module for services.
This module scans for classes annotated with Service and binds them to the injector.
-
Field Summary
Fields inherited from class com.thewinterframework.wire.module.AbstractProcessorModule
activeComponents, moduleAnnotation, wire -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) booleanonDisable(WinterPlugin plugin) Called when the plugin is disabled
NOTE: Plugin injections are available at this pointbooleanonEnable(WinterPlugin plugin) Called when the plugin is enabled
NOTE: Plugin injections are available at this pointbooleanonLoad(WinterPlugin plugin) Called when the plugin is loaded
NOTE: Plugin injections are not available at this pointprotected voidregisterComponent(WinterPlugin unused, Class<?> componentClass) Methods inherited from class com.thewinterframework.wire.module.AbstractProcessorModule
disableComponent, enableComponent, evaluateConditions, initWireMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thewinterframework.plugin.module.PluginModule
before, depends
-
Constructor Details
-
ServiceModule
public ServiceModule()
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) -
registerComponent
- Overrides:
registerComponentin classAbstractProcessorModule- Throws:
Exception
-
onLoad
Description copied from interface:PluginModuleCalled when the plugin is loaded
NOTE: Plugin injections are not available at this point- Specified by:
onLoadin interfacePluginModule- Overrides:
onLoadin classAbstractProcessorModule- Parameters:
plugin- the plugin instance which is loaded- Throws:
Exception
-
onEnable
Description copied from interface:PluginModuleCalled when the plugin is enabled
NOTE: Plugin injections are available at this point- Specified by:
onEnablein interfacePluginModule- Overrides:
onEnablein classAbstractProcessorModule- Parameters:
plugin- the plugin instance which is enabled
-
onDisable
Description copied from interface:PluginModuleCalled when the plugin is disabled
NOTE: Plugin injections are available at this point- Specified by:
onDisablein interfacePluginModule- Overrides:
onDisablein classAbstractProcessorModule- Parameters:
plugin- the plugin instance which is disabled
-