public interface ModuleVersionService
It is expected that there is a class in each module which implements this service. There is no Java-intrinsic automatism how this implementations are created, and how they are announced in META-INF/services.
Modifier and Type | Method and Description |
---|---|
static Indexable<ModuleVersionService> |
collectServices()
Collect the module version services and cache them in an indexable.
|
static Indexable<ModuleVersionService> |
collectServices(java.lang.String excludedModule)
Collect the module version services and cache them in an indexable.
|
java.lang.String |
getModuleName()
Get the name of the module for which the version is given.
|
SemVer |
getModuleVersion()
Get the current version of the module for which this service is responsible.
|
static java.util.Iterator<ModuleVersionService> |
iterator()
Get an iterator over all module version services.
|
static java.util.Iterator<ModuleVersionService> |
iterator(java.lang.String excludedModule)
Get an iterator over all module version services with one excluded.
|
static java.lang.String |
makeDependsOutput(java.lang.String prefix,
java.lang.String excludedModule)
Create a string for depending module versions.
.
|
@NotNull java.lang.String getModuleName()
@NotNull SemVer getModuleVersion()
@NotNull static java.util.Iterator<ModuleVersionService> iterator()
@NotNull static java.util.Iterator<ModuleVersionService> iterator(@NotNull java.lang.String excludedModule)
excludedModule
- excluded module@NotNull static Indexable<ModuleVersionService> collectServices()
@NotNull static Indexable<ModuleVersionService> collectServices(@NotNull java.lang.String excludedModule)
excludedModule
- excluded module@NotNull static java.lang.String makeDependsOutput(@NotNull java.lang.String prefix, @NotNull java.lang.String excludedModule)
prefix
- prefix of the output, determines indentation of further linesexcludedModule
- module which is depending on others