public interface LicenseDefinition
LicenseProvider.getLicenseDefinition()
Modifier and Type | Method and Description |
---|---|
Optional<FeatureDefinition> |
getFeature(String name)
Lookup a feature in the license definition.
|
Collection<FeatureDefinition> |
getFeatures()
Returns the features defined in this license.
|
Optional<ServerDefinition> |
getServer()
Returns information on the server for which the license file is designed for.
|
boolean |
isServerBased()
Determines whether the license is applicable to a license server.
|
boolean isServerBased()
true
if this is a floating license, false
if it's a node-locked license.Optional<ServerDefinition> getServer()
Optional.empty()
if this is a node-locked license.
Also returns Optional.empty()
if the definition is retrieved from the license server itself
(i.e. not from a license file), as no server information is available in this scenario.Optional.empty()
if none.Collection<FeatureDefinition> getFeatures()
Optional<FeatureDefinition> getFeature(String name)
name
- the name of the feature to look forOptional.empty()
if none.