jakartaee / jakartaee/servlet

Make it possible to participate in the component instance creation

Open
#162 4 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Enhancement
Dominant language
Java
Stars
325
Forks
112
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.