|
From: roger h. <apo...@sn...> - 2003-11-12 17:08:19
|
Rod Thanks for the clarification about InroductionAdvice. When I've got a clearer understanding of how the new code actually works I will try the subclassing you suggest. Many thanks Roger "Rod Johnson" <rod...@in...> wrote in message news:27e701c3a939$2b9a2c20$3800a8c0@chopin... > The new IntroductionAdvice is the only way to add an introduction. This has > only a ClassFilter. It doesn't make sense for an introduction to be > conditional by method: it's set up when the proxy is created. > > If an introduction interceptor wanted to let a particular method call > through even on one of its introduced interfaces (an unusual scenario that > you might use only if you wanted to mask some methods of a target that also > implemented the introduced interface) it could override invoke() and call > proceed() on those methods. > > Btw, the DelegatingIntroductionInterceptor could probably be used to achieve > what you wanted regarding the introduction advice implementing the interface > (ie an abstract IntroductionAdvice that subclasses > DelegatingIntroductionInterceptor and leaves subclasses to implement a > single target method). I think this can be handled by subclassing, rather > than in the core framework. > > Regards, > Rod > > ----- Original Message ----- > From: "roger holbrook" <apo...@sn...> > To: <spr...@li...> > Sent: Wednesday, November 12, 2003 4:12 PM > Subject: [Springframework-developer] MethodMatchers and Introductions > > > > > > Sorry about the copy paste error - the error was clearly mine ;) > > > > How does one now apply a MethodMatcher to the calls on an > > IntroductionInterceptor ? > > > > Does this require a separate InterceptionAdvice ? > > > > Roger > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ |