Interface VaadinServiceInitListener

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
CollaborationEngineServiceInitListener, ViewAccessCheckerInitializer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface VaadinServiceInitListener extends EventListener, Serializable
Listener for VaadinService initialization events. The listener can add listeners and request handlers to the service.

Listener instances are by default discovered and instantiated using ServiceLoader. This means that all implementations must have a zero-argument constructor and the fully qualified name of the implementation class must be listed on a separate line in a META-INF/services/com.vaadin.flow.server.VaadinServiceInitListener file present in the jar file containing the implementation class.

Integrations for specific runtime environments, such as OSGi or Spring, might also provide other ways of discovering listeners.

Since:
1.0
Author:
Vaadin Ltd
  • Method Details

    • serviceInit

      void serviceInit(ServiceInitEvent event)
      Run when a VaadinService instance is initialized.
      Parameters:
      event - the service initialization event