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 Summary
Modifier and TypeMethodDescriptionvoidhandlePostInstallDependency(@NonNull ModuleConfiguration configuration, @NonNull ModuleDependency dependency) Called when a dependency for a module was loaded.voidhandlePostModuleLoad(@NonNull ModuleWrapper moduleWrapper) Called when a module was loaded.voidhandlePostModuleReload(@NonNull ModuleWrapper moduleWrapper) Called when a module was reloaded.voidhandlePostModuleStart(@NonNull ModuleWrapper moduleWrapper) Called when a module was started.voidhandlePostModuleStop(@NonNull ModuleWrapper moduleWrapper) Called when a module was stopped.voidhandlePostModuleUnload(@NonNull ModuleWrapper moduleWrapper) Called when a module was unloaded.voidhandlePreInstallDependency(@NonNull ModuleConfiguration configuration, @NonNull ModuleDependency dependency) Called when a dependency for a module is about to get loaded.booleanhandlePreModuleLoad(@NonNull ModuleWrapper moduleWrapper) Called when a module is about to get loaded.booleanhandlePreModuleReload(@NonNull ModuleWrapper moduleWrapper) Called when a module is about to get reloaded.booleanhandlePreModuleStart(@NonNull ModuleWrapper moduleWrapper) Called when a module is about to get started.booleanhandlePreModuleStop(@NonNull ModuleWrapper moduleWrapper) Called when a module is about to get stopped.voidhandlePreModuleUnload(@NonNull ModuleWrapper moduleWrapper) Called when a module is about to get unloaded.
-
Method Details
-
handlePreModuleLoad
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
Called when a module was loaded.- Parameters:
moduleWrapper- the module which was loaded.- Throws:
NullPointerException- if the given module wrapper is null.
-
handlePreModuleStart
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
Called when a module was started.- Parameters:
moduleWrapper- the module which was started.- Throws:
NullPointerException- if the given module wrapper is null.
-
handlePreModuleReload
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
Called when a module was reloaded.- Parameters:
moduleWrapper- the module which was reloaded.- Throws:
NullPointerException- if the given module wrapper is null.
-
handlePreModuleStop
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
Called when a module was stopped.- Parameters:
moduleWrapper- the module which was stopped.- Throws:
NullPointerException- if the given module wrapper is null.
-
handlePreModuleUnload
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
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.
-