Interface ModuleDependencyLoader
public interface ModuleDependencyLoader
This module dependency loader is used to download the module dependency of a module into the default launcher libs
directory.
Note: The module dependency loader is not loading any of the downloaded dependencies, they are just downloaded and stored in the libs' directory.
- Since:
- 4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionloadModuleDependencyByRepository(@NonNull ModuleConfiguration configuration, @NonNull ModuleDependency dependency, @NonNull String repositoryUrl) Provides an url from which the provided dependency can be loaded.loadModuleDependencyByUrl(@NonNull ModuleConfiguration configuration, @NonNull ModuleDependency dependency) Provides an url for the fixed download url provided in the module dependency.
-
Method Details
-
loadModuleDependencyByUrl
@NonNull @NonNull URL loadModuleDependencyByUrl(@NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency) throws Exception Provides an url for the fixed download url provided in the module dependency.- Parameters:
configuration- the module configuration associated with the module which loads the dependency.dependency- the dependency will should be converted to a download url.- Returns:
- an url targeting the source of the dependency from which it can be loaded.
- Throws:
Exception- if any exception occurs during the load of the dependency.NullPointerException- if configuration or dependency is null.- See Also:
-
loadModuleDependencyByRepository
@NonNull @NonNull URL loadModuleDependencyByRepository(@NonNull @NonNull ModuleConfiguration configuration, @NonNull @NonNull ModuleDependency dependency, @NonNull @NonNull String repositoryUrl) throws Exception Provides an url from which the provided dependency can be loaded.- Parameters:
configuration- the module configuration associated with the module which loads the dependency.dependency- the dependency will should be converted to a download url.repositoryUrl- the repository which is associated with the dependency.- Returns:
- an url targeting the source of the dependency from which it can be loaded.
- Throws:
Exception- if any exception occurs during the load of the dependency.NullPointerException- if configuration, dependency or repositoryUrl is null.
-