Class BaseLicenseCheckerServiceInitListener

java.lang.Object
com.vaadin.flow.server.startup.BaseLicenseCheckerServiceInitListener
All Implemented Interfaces:
VaadinServiceInitListener, Serializable, EventListener

public abstract class BaseLicenseCheckerServiceInitListener extends Object implements VaadinServiceInitListener
Abstract base class implementing the 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: