| Package | Description |
|---|---|
| net.nicholaswilliams.java.licensing | |
| net.nicholaswilliams.java.licensing.exception |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LicenseManager.hasLicenseForAllFeatures(Object context,
FeatureObject... features)
Checks whether the license assigned to the specified context is licensed to use all of the features specified.
|
boolean |
LicenseManager.hasLicenseForAllFeatures(Object context,
String... featureNames)
Checks whether the license assigned to the specified context is licensed to use all of the features specified.
|
boolean |
LicenseManager.hasLicenseForAnyFeature(Object context,
FeatureObject... features)
Checks whether the license assigned to the specified context is licensed to use any of the features specified.
|
boolean |
LicenseManager.hasLicenseForAnyFeature(Object context,
String... featureNames)
Checks whether the license assigned to the specified context is licensed to use any of the features specified.
|
boolean |
LicenseManager.hasLicenseForFeature(Object context,
FeatureObject feature)
Checks whether the license assigned to the specified context is licensed to use the feature specified.
|
boolean |
LicenseManager.hasLicenseForFeature(Object context,
String featureName)
Checks whether the license assigned to the specified context is licensed to use the feature specified.
|
boolean |
LicenseManager.hasLicenseForFeatures(Object context,
AnnotatedElement target)
Checks whether the license assigned to the specified context is licensed to use the feature(s) in the
FeatureRestriction annotation value, if the target is annotated with that annotation. |
boolean |
LicenseManager.hasLicenseForFeatures(Object context,
FeatureRestriction annotation)
Checks whether the license assigned to the specified context is licensed to use the feature(s) in the annotation value.
|
void |
DefaultLicenseValidator.validateLicense(License license)
Ensures the current date is between the license's good-after and good-before dates (the license
has taken effect and hasn't expired).
|
void |
LicenseValidator.validateLicense(License license)
Validates the license provided and throws an exception if the license is invalid for any reason
(expired, not who it belongs to, etc.).
|
void |
LicenseManager.validateLicense(License license)
This method calls
LicenseValidator.validateLicense(License) on the validator that was provided, if one
was provided. |
| Modifier and Type | Class and Description |
|---|---|
class |
ExpiredLicenseException
This exception is thrown whenever a license is validated that has expired.
|
Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.