Class BaseLicenseCheckerServiceInitListener
- All Implemented Interfaces:
VaadinServiceInitListener,Serializable,EventListener
VaadinServiceInitListener for
initializing a license checking mechanism during the service initialization.
This class handles the validation of the license for a specific product and its version during the initialization of the Vaadin service. The license checking mechanism is performed only in development mode and in different modes depending on the availability of Vaadin dev tools.
With Vaadin dev tools enabled, if the license check fails because of missing license keys, handling is delegated to the Vaadin Dev Server so it can, for example, display the pre-trial splash screen. However, if dev tools are disabled, the License Checker will open the vaadin.com "Validate license" page in a browser window to let the user log in or register and then try to download a valid license.
Subclasses are expected to provide the product name and version required for the license validation by invoking the constructor of this class and to properly register the implementation for runtime discovery.
For internal use only. May be renamed or removed in a future release.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseLicenseCheckerServiceInitListener(String productName, String productVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidserviceInit(ServiceInitEvent event) Run when aVaadinServiceinstance is initialized.
-
Constructor Details
-
BaseLicenseCheckerServiceInitListener
-
-
Method Details
-
serviceInit
Description copied from interface:VaadinServiceInitListenerRun when aVaadinServiceinstance is initialized.- Specified by:
serviceInitin interfaceVaadinServiceInitListener- Parameters:
event- the service initialization event
-