users@servlet-spec.java.net

[servlet-spec users] Shouldn't CDI's HttpServletRequest, HttpSesison, etc producers be in Servlet?

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Wed, 5 Nov 2014 16:27:00 +0100

Hi,

The CDI 1.2 spec specifies producers for HttpServletRequest,
HttpSesison, and the ServletContext.

Considering all artefacts in Java EE that would make sense to be
injected, it seems a bit arbitrary that CDI itself contains producers
for these Servlet types.

Wouldn't it be better (cleaner) to have those producers in the Servlet
spec instead?


Kind regards,
Arjan Tijms