Class DefaultModule
java.lang.Object
eu.cloudnetservice.driver.module.DefaultModule
- Direct Known Subclasses:
DriverModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoaderprotected ModuleConfigurationprotected ModuleWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the class loader which is responsible for 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.
-
Field Details
-
classLoader
-
moduleWrapper
-
moduleConfig
-
-
Constructor Details
-
DefaultModule
public DefaultModule()
-
-
Method Details
-
init
public 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. -
moduleWrapper
Get the module wrapper which is associated with this module.- Specified by:
moduleWrapperin interfaceModule- Returns:
- the module wrapper which is associated with this module.
-
classLoader
Get the class loader which is responsible for this module.- Specified by:
classLoaderin interfaceModule- 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.- Specified by:
moduleConfigin interfaceModule- Returns:
- the module configuration located in this module file.
-