Question about whose responsibility it is to test injections into Java EE components.
On 18 Oct 2013, at 13:49, Martin Kouba <mkouba(a)redhat.com> wrote:
Dne 17.10.2013 15:07, Pete Muir napsal(a):
> On 17 Oct 2013, at 12:06, Martin Kouba <mkouba(a)redhat.com> wrote:
>> Hi all,
>> today when I walked through EE 7 umbrella spec I found some parts which
>> indicate that all "component classes supporting injection" (servlets,
>> JSP tag handlers, ...) must also support
>> interceptors (if CDI is enabled).
>> EE.5.24 Support for Dependency Injection
>> "Therefore, to make injection support more uniform across all Java EE
>> component types, Java EE containers are required to support field,
>> method, and constructor injection using the javax.inject.Inject
>> annotation into all component classes listed in Table EE.5-1 as having
>> the “Standard” level of injection support, as well as the use of
>> interceptors for these classes."
>> EE.5.2.5 Annotations and Injection
>> "The component classes listed in Table EE.5-1 with support level
>> “Standard” all support Java EE resource injection, as well as
>> PostConstruct and PreDestroy callbacks. In addition, if CDI is
>> enabled—which it is by default—these classes also support CDI injection,
>> as described in Section EE.5.24, “Support for Dependency Injection”, and
>> the use of interceptors."
>> Is my interpretation correct or am I missing something? Actually I doubt
>> it works correctly on EE 7 containers out there.
> I believe you are correct. I think I also asked Bill and Linda about whose
responsibility it was to test this, and it wasn't ours (though we could test it if we
I think individual specs which mention this requirement (e.g. Servlet
and WebSocket) should test it (I guess there's no "EE umbrella
> Do you want me to follow up with them?
Please do. Thanks! :-)
>> Martin Kouba
>> JBoss Quality Assurance Engineer
>> CDI TCK lead
>> Red Hat, Czech Republic
>> cdi-dev mailing list