Interface Module
- All Superinterfaces:
Named
- All Known Implementing Classes:
DefaultModule,DriverModule
Represents the main class or entry point of the module. The entry point is allowed to specify own module lifecycle
update methods using the module task annotation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the class loader which is responsible for this module.Get the description of this module.group()Get the group of this module.voidinit(@NonNull ClassLoader loader, @NonNull ModuleWrapper wrapper, @NonNull ModuleConfiguration config) Initializes the module with the necessary information.Get the module configuration which was deserialized based on the information located in the module.Get the module wrapper which is associated with this module.name()Get the name of this module.version()Get the version of this module.website()Get the website of this module.
-
Method Details
-
init
void init(@NonNull @NonNull ClassLoader loader, @NonNull @NonNull ModuleWrapper wrapper, @NonNull @NonNull ModuleConfiguration config) Initializes the module with the necessary information. This method can only be called once.- Parameters:
loader- the class loader used to load all dependencies and the main class of the module.wrapper- the created module wrapper which wraps this module.config- the deserialized module configuration located in the module file.- Throws:
IllegalArgumentException- if this module instance is already initialized.NullPointerException- if the provided loader, wrapper or module config is null.
-
moduleWrapper
Get the module wrapper which is associated with this module.- Returns:
- the module wrapper which is associated with this module.
-
classLoader
Get the class loader which is responsible for this module.- Returns:
- the class loader which is responsible for this module.
-
moduleConfig
Get the module configuration which was deserialized based on the information located in the module.- Returns:
- the module configuration located in this module file.
-
group
-
name
-
version
-
website
-
description
-