|
From: Rod J. <rod...@in...> - 2003-11-15 15:04:53
|
Yanger, Yes, Spring supports introductions, which are normally used for mixins. Introductions are definitely useful for "power users" of AOP. And they can potentially be added behind the scenes. For example, I'm experimenting with a "Modifiable" attribute that adds a Modifiable interface(isModified() etc) via a mixin. Could be useful for caching and doesn't require the application developer to work directly with introductions or mixins. Regards, Rod ----- Original Message ----- From: "Yanger" <yan...@ya...> To: "springframework-developer@lists." <spr...@li...> Sent: Saturday, November 15, 2003 2:58 PM Subject: Re: Fw: [Springframework-developer] Revised AOP API proposal > Besides advice, introduction (from my perspective, it is some kind of mixin, right?) seem to be another important concept of AOP. Have you implemented it in Spring? I think that introductions maybe too geek to use in practice, do you think so? > > Best Regards, > Yanger > yan...@ya... > 2003-11-15 22:58:13 > > ======= 2003-11-12 01:03:14 Your mail is:======= > > >Forwarded on behalf of Bob... > > > > > > > >renaud wrote: > > > >>certain join points and values at those points. Advice defines code that is > >>executed when a pointcut is reached. These are, then, the dynamic parts of > >>AspectJ. > >></AspectJDoc> > >> > >>By reading this, you can really think that the advice and the pointcut are > >>orthogonal and defined independently. Indeed, it seems not flexible at all > >>to define at the same place the code to be executed and where it is > >>executed. > >> > >> > >I think it means that advice maps code to pointcuts. > > > >>To me it is confusing. Moreover, lots of work on AOP have pointed out the > >>benefits of having independent structures for the both. To me AspectJ > >misses > >>something here: the ability to define independent (unlocated) advice -- > >like > >>an interceptor does. > >> > >> > >You can map to an abstract pointcut. > > > >I think Advice is the correct term here. > > > >Thanks, > >Bob > > > > > > > > > > > >------------------------------------------------------- > >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 > >. > > = = = = = = = = = = = = = = = = = = = = > > > NHS甸u肌:瑞?瑞藏}wyq胧|y叮 z)rHN即 Zzο?② 糅MM{z并y箔 |