public interface LicenseLocator
LicenseService.activate(String)
method.
Here is the sequence to determine the license location used by the platform:
sodius.license
Java system property is set,
in which case it must reference the path of the license file.
It can either be a file path or a URL.
sodius.license.locator
Java system property is set,
in which case it must specify the qualified name of a class implementing this LicenseLocator
interface.
The implementation is in charge to determine the URL of the license to load.
The class is loaded using the class loader of the LicenseLocator
class,
which means it works correctly only in a non-OSGI application, where all JAR files reside in the same class loader.
/sodius-license.lic
resource using the class loader of the LicenseLocator
class.
If it succeeds, this resource must contain the license data.
In a standalone Java application, this allows to just put a "sodius-license.lic" resource at the root of a JAR file.
com.sodius.licensing.location
extension point.
A license
extension is used to locate a license resource.
A locator
extension is used to reference a LicenseLocator
implementation which provides the URL of the license.
The license resource is searched only once, the first time an activation key verification is triggered. If none of the steps above enabled to discover a license, all activation attempts will fail.
Modifier and Type | Method and Description |
---|---|
URL |
getLicenseLocation()
Returns the location of the license to use.
|
URL getLicenseLocation()