com.vaadin.flow.server.
Interface VaadinServiceInitListener
All Superinterfaces:
All Known Implementing Classes:
CollaborationEngineServiceInitListener
, CsrfServiceInitListener
, DAUVaadinRequestInterceptor
, EndpointRegistryInitializer
, NavigationAccessControlInitializer
, RouteUnifyingServiceInitListener
, ViewAccessCheckerInitializer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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 Summary
Modifier and TypeMethodDescriptionvoid
serviceInit
(ServiceInitEvent event) Run when a
VaadinService
instance is initialized.
-
Method Details
-
serviceInit
Run when a
VaadinService
instance is initialized.Parameters:
event
- the service initialization event
-