com.vaadin.server.

Class ServiceInitEvent

    • Constructor Detail

      • ServiceInitEvent

        public ServiceInitEvent​(VaadinService service)

        Creates a new service init event for a given VaadinService and the RequestHandler that will be used by the service.

        Parameters:

        service - the Vaadin service of this request

    • Method Detail

      • addRequestHandler

        public void addRequestHandler​(RequestHandler requestHandler)

        Adds a new request handler that will be used by this service. The added handler will be run before any of the framework's own request handlers, but the ordering relative to other custom handlers is not guaranteed.

        Parameters:

        requestHandler - the request handler to add, not null

      • getAddedRequestHandlers

        public List<RequestHandler> getAddedRequestHandlers()

        Gets an unmodifiable list of all custom request handlers that have been added for the service.

        Returns:

        the current list of added request handlers

      • addDependencyFilter

        public void addDependencyFilter​(DependencyFilter dependencyFilter)

        Adds a new dependency filter that will be used by this service.

        Parameters:

        dependencyFilter - the dependency filter to add, not null

        Since:

        8.1

      • getAddedDependencyFilters

        public List<DependencyFilter> getAddedDependencyFilters()

        Gets an unmodifiable list of all dependency filters that have been added for the service.

        Returns:

        the current list of added dependency filters.

        Since:

        8.1

      • addConnectorIdGenerator

        public void addConnectorIdGenerator​(ConnectorIdGenerator connectorIdGenerator)

        Adds as connector id generator to be used by this service. By default, the service will fail to deploy if more than one connector id generator has been registered.

        Parameters:

        connectorIdGenerator - the connector id generator to add, not null

        Since:

        8.1

      • getAddedConnectorIdGenerators

        public List<ConnectorIdGenerator> getAddedConnectorIdGenerators()

        Gets an unmodifiable list of all connector id generators that have been added for the service.

        Returns:

        the current list of added connector id generators

        Since:

        8.1