Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[servlet-dev] Make Servlets CDI beans?

Hi,

This was discussed a while ago, but in the context of the CDI-centric Jakarta EE release it might be good to restart this discussion.

The overall goal of the Jakarta EE platform is to move the various spec specific component models and mechanisms to CDI (as per the "CDI-centric" theme).

Servlets have been @Inject injectable (loosely via the pruned Managed Beans spec, although the Servlet spec itself did not say so), but are themselves not CDI beans.

I'd like to propose to make Servlets officially CDI beans, but only within a Jakarta EE environment.

Meaning, Tomcat and Jetty would have no requirement to support this, and these requirements would be in a separate chapter of the Servlet spec.

Thoughts?

Kind regards,
Arjan Tijms

Back to the top