Jun 23rd, 2005, 03:43 PM
introduce and intercept
Is it possible to introduce an interface to an existing class and also intercept calls to the methods of the original class? I've tried to add two interceptors to a proxy, but because I had to set exposeProxy, singleton and proxyTargetClass to true for the introduction, subsequent method interceptors aren't called.
I've tried (as a hack) to create the introduction proxy and then create another proxy on to that, but nothing seems to work. Am i missing something conceptually or is this a limit of the proxy-based approach? Would an alternative AOP framework like Aspectwerkz allow such functionality?