Class ModulePostInstallDependencyEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.module.UnloadedModuleEvent
eu.cloudnetservice.driver.event.events.module.ModulePostInstallDependencyEvent

public final class ModulePostInstallDependencyEvent extends UnloadedModuleEvent
This event gets called after a dependency for a module has been loaded.
Since:
4.0
  • Field Details

  • Constructor Details

    • ModulePostInstallDependencyEvent

      public ModulePostInstallDependencyEvent(@NonNull @NonNull ModuleProvider provider, @NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency)
      Creates a new module installed dependency (post) event.
      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

      @NonNull public @NonNull ModuleDependency moduleDependency()
      Get the dependency which got loaded for the module.
      Returns:
      the dependency which got loaded for the module.