Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
http-2.2.2
-
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
- 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