Class UnloadedModuleEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.module.UnloadedModuleEvent
- Direct Known Subclasses:
ModulePostInstallDependencyEvent, ModulePreInstallDependencyEvent
Defines events which will be called when a module is not yet instantiated.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnloadedModuleEvent(@NonNull ModuleProvider moduleProvider, @NonNull ModuleConfiguration moduleConfiguration) Creates a new unloaded module event instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the module configuration of the module this event is associated with.Get the module provider which loaded the module.
-
Field Details
-
moduleProvider
-
moduleConfiguration
-
-
Constructor Details
-
UnloadedModuleEvent
public UnloadedModuleEvent(@NonNull @NonNull ModuleProvider moduleProvider, @NonNull @NonNull ModuleConfiguration moduleConfiguration) Creates a new unloaded module event instance.- Parameters:
moduleProvider- the module provider by which the module got loaded.moduleConfiguration- the configuration of the module which got loaded as there is no instance yet created.
-
-
Method Details
-
moduleProvider
Get the module provider which loaded the module.- Returns:
- the module provider which loaded the module.
-
moduleConfiguration
Get the module configuration of the module this event is associated with.- Returns:
- the module configuration of the module.
-