Interface ModuleProviderHandler


public interface ModuleProviderHandler
The module provider handler handles the notifications for all module lifecycles changes for all loaded modules.
Since:
4.0
See Also:
  • Method Details

    • handlePreModuleLoad

      boolean handlePreModuleLoad(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module is about to get loaded.
      Parameters:
      moduleWrapper - the module wrapper which will be loaded.
      Returns:
      if the module is allowed to load.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePostModuleLoad

      void handlePostModuleLoad(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module was loaded.
      Parameters:
      moduleWrapper - the module which was loaded.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePreModuleStart

      boolean handlePreModuleStart(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module is about to get started.
      Parameters:
      moduleWrapper - the module which will be started.
      Returns:
      if the module is allowed to start.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePostModuleStart

      void handlePostModuleStart(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module was started.
      Parameters:
      moduleWrapper - the module which was started.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePreModuleReload

      boolean handlePreModuleReload(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module is about to get reloaded.
      Parameters:
      moduleWrapper - the module which will be reloaded.
      Returns:
      if the module is allowed to be reloaded.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePostModuleReload

      void handlePostModuleReload(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module was reloaded.
      Parameters:
      moduleWrapper - the module which was reloaded.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePreModuleStop

      boolean handlePreModuleStop(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module is about to get stopped.
      Parameters:
      moduleWrapper - the module which will be stopped.
      Returns:
      if the module is allowed to stop.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePostModuleStop

      void handlePostModuleStop(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module was stopped.
      Parameters:
      moduleWrapper - the module which was stopped.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePreModuleUnload

      void handlePreModuleUnload(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module is about to get unloaded.
      Parameters:
      moduleWrapper - the module which will be unloaded.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePostModuleUnload

      void handlePostModuleUnload(@NonNull @NonNull ModuleWrapper moduleWrapper)
      Called when a module was unloaded.
      Parameters:
      moduleWrapper - the module which was unloaded.
      Throws:
      NullPointerException - if the given module wrapper is null.
    • handlePreInstallDependency

      void handlePreInstallDependency(@NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency)
      Called when a dependency for a module is about to get loaded.
      Parameters:
      configuration - the configuration of the module in which the dependency is declared.
      dependency - the dependency which will be loaded.
      Throws:
      NullPointerException - if configuration or dependency is null.
    • handlePostInstallDependency

      void handlePostInstallDependency(@NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency)
      Called when a dependency for a module was loaded.
      Parameters:
      configuration - the configuration of the module in which the dependency is declared.
      dependency - the dependency which was loaded.
      Throws:
      NullPointerException - if configuration or dependency is null.