[cdi-dev] EE 7 "component classes supporting injection" and interceptors

Pete Muir pmuir at redhat.com
Thu Oct 17 09:07:09 EDT 2013


On 17 Oct 2013, at 12:06, Martin Kouba <mkouba at 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 wanted).

Do you want me to follow up with them?

> 
> M
> 
> -- 
> Martin Kouba
> JBoss Quality Assurance Engineer
> CDI TCK lead
> Red Hat, Czech Republic
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev




More information about the cdi-dev mailing list