Class ModuleRepository
java.lang.Object
eu.cloudnetservice.driver.module.ModuleRepository
- All Implemented Interfaces:
Named
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor is for internal use only.ModuleRepository(@NonNull String name, @NonNull String url) Constructs a new instance of this class. -
Method Summary
-
Field Details
-
name
-
url
-
-
Constructor Details
-
ModuleRepository
Constructs a new instance of this class.- Parameters:
name- the name of the repository, must be unique. Duplicate names will override each other.url- the url of the repository.- Throws:
NullPointerException- if name or url is null
-
ModuleRepository
This constructor is for internal use only. The name and url of this repository is required. Creating a repository using this constructor will cause an exception when loading the module. SeeassertComplete().
-
-
Method Details
-
name
-
url
-
assertComplete
public void assertComplete()Asserts that the required properties (name, url) are present.- Throws:
NullPointerException- if one of required properties is not set.
-