public class ServiceInitEvent extends EventObject
VaadinServiceInitListener when a VaadinService
is being initialized.
This event can also be used to add RequestHandlers 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 |
addConnectorIdGenerator(ConnectorIdGenerator connectorIdGenerator)
Adds as connector id generator to be used by this service.
|
void |
addDependencyFilter(DependencyFilter dependencyFilter)
Adds a new dependency filter that will be used by this service.
|
void |
addRequestHandler(RequestHandler requestHandler)
Adds a new request handler that will be used by this service.
|
List<ConnectorIdGenerator> |
getAddedConnectorIdGenerators()
Gets an unmodifiable list of all connector id generators that have been
added for the service.
|
List<DependencyFilter> |
getAddedDependencyFilters()
Gets an unmodifiable list of all dependency filters that have been added
for the service.
|
List<RequestHandler> |
getAddedRequestHandlers()
Gets an unmodifiable list of all custom request handlers that have been
added for the service.
|
VaadinService |
getSource() |
toStringpublic 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 nullpublic List<RequestHandler> getAddedRequestHandlers()
public void addDependencyFilter(DependencyFilter dependencyFilter)
dependencyFilter - the dependency filter to add, not nullpublic List<DependencyFilter> getAddedDependencyFilters()
public void addConnectorIdGenerator(ConnectorIdGenerator connectorIdGenerator)
connectorIdGenerator - the connector id generator to add, not nullpublic List<ConnectorIdGenerator> getAddedConnectorIdGenerators()
public VaadinService getSource()
getSource in class EventObjectCopyright © 2019 Vaadin Ltd. All rights reserved.