This content has been marked as final.
Show 2 replies
-
1. Re: How can I use interceptors around objects created by producer methods
kramedt Aug 13, 2012 10:33 AM (in response to kramedt)So I guess I should assume from the lack of replies that this isn't possible? Creating a delegate class works I guess. I think I understand why this wouldn't be supported as you wouldn't be able to use dynamic sub-classes, but wouldn't it be beneficial to support this with a proxy class if the producer method returns an interface? And are there any plans to do so?
-
2. Re: How can I use interceptors around objects created by producer methods
mkouba Aug 14, 2012 8:20 AM (in response to kramedt)Hi,
AFAIK it's not supported indeed. But the wrapper/delegate class bean will work. I don't think there are any plans for this. Feel free to file a feature request and/or watch CDI-59 for any progress...
Martin