public class LicenseChecker extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LicenseChecker.Callback |
| Constructor and Description |
|---|
LicenseChecker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkLicense(String productName,
String productVersion)
Deprecated.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType)
Checks the license for the given product version.
|
static void |
checkLicense(String productName,
String productVersion,
BuildType buildType,
java.util.function.Consumer<String> noKeyUrlHandler)
Checks the license for the given product version.
|
static void |
checkLicense(String productName,
String productVersion,
java.util.function.Consumer<String> noKeyUrlHandler)
Deprecated.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback)
Checks the license for the given product version in the background and
invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
BuildType buildType,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler)
Checks the license for the given product version in the background and
invokes the callback when done.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
LicenseChecker.Callback callback)
Deprecated.
|
static void |
checkLicenseAsync(String productName,
String productVersion,
LicenseChecker.Callback callback,
java.util.function.Consumer<String> noKeyUrlHandler)
Deprecated.
|
static void |
checkLicenseFromStaticBlock(String productName,
String productVersion)
Deprecated.
|
static void |
checkLicenseFromStaticBlock(String productName,
String productVersion,
BuildType buildType)
Checks the license for the given product version from a
static
block. |
static org.slf4j.Logger |
getLogger() |
static void |
setStrictOffline(boolean strictOffline) |
@Deprecated public static void checkLicenseFromStaticBlock(String productName, String productVersion)
checkLicenseFromStaticBlock(String, String, BuildType)public static void checkLicenseFromStaticBlock(String productName, String productVersion, BuildType buildType)
static
block.productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: production or developmentExceptionInInitializerError - if the license check fails@Deprecated public static void checkLicense(String productName, String productVersion)
checkLicense(String, String, BuildType)public static void checkLicense(String productName, String productVersion, BuildType buildType)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionLicenseException - if the license check failspublic static void checkLicense(String productName, String productVersion, java.util.function.Consumer<String> noKeyUrlHandler)
checkLicense(String, String, BuildType, Consumer)public static void checkLicense(String productName, String productVersion, BuildType buildType, java.util.function.Consumer<String> noKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productionnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL
to download the key file. Used when no key file is
avialable.LicenseException - if the license check fails@Deprecated public static void checkLicenseAsync(String productName, String productVersion, LicenseChecker.Callback callback)
checkLicenseAsync(String, String, BuildType, Callback)public static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the result@Deprecated public static void checkLicenseAsync(String productName, String productVersion, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler)
checkLicenseAsync(String, String, BuildType, Callback, Consumer)public static void checkLicenseAsync(String productName, String productVersion, BuildType buildType, LicenseChecker.Callback callback, java.util.function.Consumer<String> noKeyUrlHandler)
productName - the name of the product to checkproductVersion - the version of the product to checkbuildType - the type of build: development or productioncallback - the callback to invoke with the resultnoKeyUrlHandler - a handler that is invoked to open the vaadin.com URL
to download the key file. Used when no key file is
avialable.public static org.slf4j.Logger getLogger()
public static void setStrictOffline(boolean strictOffline)
Copyright © 2017-2022. All Rights Reserved.