@FunctionalInterface public interface VaadinServiceInitListener extends EventListener, Serializable
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.
| Modifier and Type | Method and Description |
|---|---|
void |
serviceInit(ServiceInitEvent event)
Run when a
VaadinService instance is initialized. |
void serviceInit(ServiceInitEvent event)
VaadinService instance is initialized.event - the service initialization eventCopyright © 2017 Vaadin Ltd. All rights reserved.