Package ch.nolix.core.misc.license
Klasse LicenseManagerUnit
java.lang.Object
ch.nolix.core.misc.license.LicenseManagerUnit
A
LicenseManagerUnit contains Licenses.- Version:
- 2019-11-16
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungaddLicense(License license) Adds the given license to the currentLicenseManagerUnit.<L extends License>
LicenseManagerUnitaddLicense(Class<L> licenseType) Creates and adds a newLicenseof the given licenseType to the currentLicenseManagerUnit<F extends AbstractFeature>
booleancontainsFeature(Class<F> featureType) <L extends License>
booleancontainsLicense(Class<L> licenseType) IContainer<Class<?>> voidremoveLicense(License license) Removes the given license from the currentLicenseManagerUnit.<F extends AbstractFeature>
LicenseManagerUnitrequireFeature(Class<F> featureType) Requires the currentLicenseManagerUnitto contain aAbstractFeatureof the given featureType.when(long value)
-
Konstruktordetails
-
LicenseManagerUnit
public LicenseManagerUnit()
-
-
Methodendetails
-
addLicense
Creates and adds a newLicenseof the given licenseType to the currentLicenseManagerUnit- Typparameter:
L- is the given licenseType.- Parameter:
licenseType-- Gibt zurück:
- the current
LicenseManagerUnit. - Löst aus:
ArgumentIsNullException- if the given licenseType is null.RuntimeException- if if there was not found a file with the key for a License of the given licenseType.InvalidArgumentException- if the given licenseType does not contain a constructor with 1Stringparameter.InvalidArgumentException- if the found key is not valid.InvalidArgumentException- if the currentLicenseManagerUnitdoes contain already aLicenseof the given licenseType.
-
addLicense
Adds the given license to the currentLicenseManagerUnit.- Parameter:
license-- Gibt zurück:
- the current
LicenseManagerUnit. - Löst aus:
ArgumentIsNullException- if the given license is null.InvalidArgumentException- if the given license is not activated.InvalidArgumentException- if the currentLicenseManagerUnitcontains already aLicenseof the type the given license is.
-
containsFeature
- Typparameter:
F- is the given featureType.- Parameter:
featureType-- Gibt zurück:
- true if the current
LicenseManagerUnitcontains aAbstractFeatureof the given featureType.
-
containsLicense
- Typparameter:
L- is the given licenseType.- Parameter:
licenseType-- Gibt zurück:
- true if the current
LicenseManagerUnitcontains aLicenseof the given licenseType.
-
getLicenseTypes
- Gibt zurück:
- the types of the licenses of the current
LicenseManagerUnit.
-
removeLicense
Removes the given license from the currentLicenseManagerUnit.- Parameter:
license-- Löst aus:
ArgumentDoesNotContainElementException- if the currentLicenseManagerUnitdoes not contain the given license.
-
requireFeature
Requires the currentLicenseManagerUnitto contain aAbstractFeatureof the given featureType.- Typparameter:
F- is the given featureType.- Parameter:
featureType-- Gibt zurück:
- the current
LicenseManagerUnit. - Löst aus:
ArgumentDoesNotHaveAttributeException- if the currentLicenseManagerUnitdoes not contain aAbstractFeatureof the given featureType.
-
when
- Parameter:
value-- Gibt zurück:
- a new
LongMediatorfor the given value.
-