This content has been marked as final.
Show 1 reply
-
1. Re: Producer Methods and Servlet Filter Injection
mkouba Jun 28, 2013 3:34 AM (in response to capacman)Hi,
I suppose this class is not inside any bean archive, probably in some bundled library? If so you can use a portable extension and BeforeBeanDiscovery.addAnnotatedType()... see for example https://github.com/mojavelinux/cdi-extension-showcase/blob/master/src/main/java/com/acme/importbeans/RegisterBeanFromNonBeanClassExtension.java. But of course since there are no CDI annotations no dependencies will be injected.
I don't think Weld servlet integration module supports constructor injection (for any supported servlet container).