public class ServiceInitEvent extends EventObject
VaadinServiceInitListener
when a VaadinService
is being initialized.
This event can also be used to add RequestHandler
s that will be used
by the VaadinService
for handling all requests.
source
Constructor and Description |
---|
ServiceInitEvent(VaadinService service)
Creates a new service init event for a given
VaadinService and
the RequestHandler that will be used by the service. |
Modifier and Type | Method and Description |
---|---|
void |
addRequestHandler(RequestHandler requestHandler)
Adds a new request handler that will be used by this service.
|
List<RequestHandler> |
getAddedRequestHandlers()
Gets an unmodifiable list of all custom request handlers that have been
added for the service.
|
VaadinService |
getSource() |
toString
public ServiceInitEvent(VaadinService service)
VaadinService
and
the RequestHandler
that will be used by the service.service
- the Vaadin service of this requestpublic void addRequestHandler(RequestHandler requestHandler)
requestHandler
- the request handler to add, not null
public List<RequestHandler> getAddedRequestHandlers()
public VaadinService getSource()
getSource
in class EventObject
Copyright © 2017 Vaadin Ltd. All rights reserved.