Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Challenge

Hi

Thnx for the clarification.

Hermod

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx]On Behalf Of Antti Karanta
Sent: Wednesday, June 13, 2007 10:34 AM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] Challenge




> Using a before advice won't do it as far as I can tell. The 
> only way to change the return value (say return null f.ex.), 
> or throw something like a ResourceUnavailable exception would 
> be in a around advice. Using a before advice won't stop the 
> actual call (or will it?).

  You can throw exceptions from before advice, and doing so naturally
stops the actual call from happening. 

  If you want to change the return value or not make the actual call
(e.g. get the value from cache), you have to use around advice.


 
      -Antti-


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


Back to the top