Package com.thewinterframework.module
Class PluginComponentModule
java.lang.Object
com.thewinterframework.wire.module.AbstractProcessorModule
com.thewinterframework.module.PluginComponentModule
- All Implemented Interfaces:
com.google.inject.Module,PluginModule,ProcessorModule
Module for plugin components.
This module scans for classes annotated with ModuleComponent 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) List<Class<? extends PluginModule>> depends(WinterPlugin plugin) List of modules that this module depends onbooleanonDisable(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 pointMethods inherited from class com.thewinterframework.wire.module.AbstractProcessorModule
disableComponent, enableComponent, evaluateConditions, initWire, registerComponentMethods 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
-
Constructor Details
-
PluginComponentModule
public PluginComponentModule()
-
-
Method Details
-
depends
Description copied from interface:PluginModuleList of modules that this module depends on- Parameters:
plugin- the plugin instance which is loaded- Returns:
- list of modules that this module depends on, and will be loaded before this module
-
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
-
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
-
configure
public void configure(com.google.inject.Binder binder)
-