In a way, yes. The behavior of before and after (returning/throwing) advice can be mimicked using around advice.
However, if possible for performance reasons, it is better to use before/after instead of around. The compiler will try to convert around advice into before/after if possible, but it will not always be successful. Also, it can just be easier to read an aspect if before/after advice is used appropriately. On Tue, Nov 4, 2008 at 2:04 PM, tamal nath <[EMAIL PROTECTED]> wrote: > Hi, > > Are use of before and after advices optional in AspectJ? Can all that they > do be done using around advice. It seems so. > > Tamal > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
