com.vaadin.server.
Interface VaadinServiceInitListener
-
All Superinterfaces:
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 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.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:
8.0
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description void
serviceInit​(ServiceInitEvent event)
Run when a
VaadinService
instance is initialized.
-
-
-
Method Detail
-
serviceInit
void serviceInit​(ServiceInitEvent event)
Run when a
VaadinService
instance is initialized.Parameters:
event
- the service initialization event
-
-