2008/10/3 James Strachan <[EMAIL PROTECTED]>: > 2008/10/3 Dhanji R. Prasanna <[EMAIL PROTECTED]>: >> Have you considered using the AopAlliance ConstructorInterceptors as the >> interface? This will match nicely with the MethodInterceptors. > > Ah great idea!
It turned out - now you suggested the idea - it was super easy to implement! :) I've a first spike of an implementation working; most of the code is just boilerplate code; I just followed the way MethodInterceptors worked and it all seemed super easy. Many thanks Dhanji! The patch is attached here... http://code.google.com/p/google-guice/issues/detail?id=78 I'll try tidy up the generics code in ProxyFactory.wrapConstructorProxy() some more (my generics ninja was letting me down) and add a few more unit tests, but so far its looking good! So you can now just do bindConstructorInterceptor(matcher, interceptors); just like with method interceptors and it seems to just work. e.g. see the IntegrationTest.testConstructorInterceptor() -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
