Class ModulePreInstallDependencyEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.module.UnloadedModuleEvent
eu.cloudnetservice.driver.event.events.module.ModulePreInstallDependencyEvent
This event is being called before a dependency for a module is being loaded.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModulePreInstallDependencyEvent(@NonNull ModuleProvider provider, @NonNull ModuleConfiguration configuration, @NonNull ModuleDependency dependency) Creates a new unloaded module event instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the dependency which will get loaded for the module.Methods inherited from class UnloadedModuleEvent
moduleConfiguration, moduleProvider
-
Field Details
-
moduleDependency
-
-
Constructor Details
-
ModulePreInstallDependencyEvent
public ModulePreInstallDependencyEvent(@NonNull @NonNull ModuleProvider provider, @NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency) Creates a new unloaded module event instance.- Parameters:
provider- the module provider by which the module got loaded.configuration- the configuration of the module which got loaded as there is no instance yet created.dependency- the dependency which got loaded.- Throws:
NullPointerException- if the given provider, configuration or dependency is null.
-
-
Method Details
-
moduleDependency
Get the dependency which will get loaded for the module.- Returns:
- the dependency which will get loaded for the module.
-