Class UnloadedModuleEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.module.UnloadedModuleEvent
Direct Known Subclasses:
ModulePostInstallDependencyEvent, ModulePreInstallDependencyEvent

public abstract class UnloadedModuleEvent extends Event
Defines events which will be called when a module is not yet instantiated.
Since:
4.0
  • Field Details

  • 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

      @NonNull public @NonNull ModuleProvider moduleProvider()
      Get the module provider which loaded the module.
      Returns:
      the module provider which loaded the module.
    • moduleConfiguration

      @NonNull public @NonNull ModuleConfiguration moduleConfiguration()
      Get the module configuration of the module this event is associated with.
      Returns:
      the module configuration of the module.