jakartaee / servlet

Jakarta Servlet
https://eclipse.org/ee4j/servlet
Other
250 stars 79 forks source link

Make it possible to participate in the component instance creation #162

Open glassfishrobot opened 7 years ago

glassfishrobot commented 7 years ago

The spec requires the implementations to support injection and interception for Servlets, Filters, Listeners and HttpUpgradeHandlers. Still it does not provide any SPI which would allow to participate in the component instance creation.

This is usually not a problem for Java EE servers where integration is mostly based on implementation-specific features.

However, outside Java EE the CDI integration code (for example Weld Servlet) must leverage non-portable SPIs, such as io.undertow.servlet.api.InstanceFactory and org.apache.tomcat.InstanceManager.

It might be useful to provide a portable SPI for this.

glassfishrobot commented 6 years ago
glassfishrobot commented 7 years ago

@glassfishrobot Commented Reported by mkouba

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA SERVLET_SPEC-162

gregw commented 4 years ago

Note conversations regarding Jetty CDI integration with OWB and Weld indicating the need for an SPI.