You could also use load time weaving, if it's acceptable for your application. That way, aspects are not compiled but loaded when your application or test cases are running (which, as always, has some pros an cons).
We currently use this approach at work (where there's also some internal resistance to using aspects). saludos! Marco Mistroni wrote: > hi all, > i have developed a project using aspectj, because i had a business > rule that needed to be applied in various layers of > the application. > Only problem is that, every time in my RAD i change the code of a > class that is affected by an aspect, aspectj plugin for eclipse > recompile the whole project (aind since i have many dependencies, it > ends up recompiling all projects in my workspace) > > many of my colleagues are pissed off for this, and they want to drop > aspectj because 'it takes hell lot of time to compile, surely if we write > a class with the business rule, and call it from every part in the > code where is needed, we can achieve the same effect without having > the compilation hell' > > beside that with this idea we need to add one extra parameter for > every single method where we need to apply the business rule (should > be a pain, but withh eclipse quick-and-fix shortcuts that refactor all > methods where you need to add an extra parameter, everything is > easy), i haven't found any arguments to counterattack..... > > anyone can give me some please? > i have said that with aspectj, you wouldn't need to change any signle > line of code to apply a business rule, because everything is coded > into aspect... but to them, this is not enough.... > > thanks and regards > marco > ------------------------------------------------------------------------ > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > -- santiago aguiar *netlabs* / Palmar 2548 Montevideo, Uruguay Tel. +(598 2) 707 7687 Fax. +(598 2) 709 4866 / http://www.netlabs.com.uy
begin:vcard fn:Santiago Aguiar n:Aguiar;Santiago org:;Desarrollo adr:;;Palmar 2548;Montevideo;Montevideo;11600;Uruguay email;internet:[EMAIL PROTECTED] title:NetLabs tel;work:+598 2 7077687 tel;fax:+598 2 7094866 tel;home:+598 2 7075079 tel;cell:+598 99 579739 x-mozilla-html:TRUE url:http://www.netlabs.com.uy/ version:2.1 end:vcard
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
