Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4473

[Jetty] Add support for Jetty Connector injection

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • http-2.2.2
    • http-2.3.0
    • HTTP Service
    • None

    Description

      As discussed on the list [1] a ConnectorFactory service is to be defined which allows the injection of Jetty Connector objects into the running Jetty server.

      package org.apache.felix.http.jetty;
      public interface ConnectorFactory

      { Connector createConnector(); }
      • createConnector creates a new configured (but not started) Connector instance on each call
      • The Jetty bundle calls createConnector for each Jetty server started (for now this is a single one).
      • The Connector is added to the Jetty server and started
      • When the Jetty server stops, the connector is stopped and discarded along with the Jetty server
      • When the ConnectorFactory is stopped, the Connector has to be stopped and removed from the Jetty server

      [1] http://felix.markmail.org/thread/wvnani5362kq5ynr

      Attachments

        1. FELIX-4473.patch
          12 kB
          Felix Meschberger

        Activity

          People

            Unassigned Unassigned
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: