Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] writing around advice for an unknown method

 
Object around(): <my point cut>
{
<stuff before proceed>
return proceed();
<stuff after>
}

Cordialement / Best regards



-----Message d'origine-----
De : aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Ashank
Envoyé : vendredi 19 mars 2010 11:56
À : aspectj-users@xxxxxxxxxxx
Objet : [aspectj-users] writing around advice for an unknown method


Hello,

I have an urgent 'newbie' question and could not get the info from the docs
and forums upon a brief search. I am confused about the around advice and
calling proceed from within.

I want to write an 'around' advice for a random method call (e.g. the
pointcut call(* *(..)). For such pointcuts, I don't know about the matching
method call and its return types. For instance, the method might return
nothing (void) or primitive or an object. How do I write the 'proceed'
statement for this situation? 

Thanks in advance,
Arvind
--
View this message in context:
http://old.nabble.com/writing-around-advice-for-an-unknown-method-tp27950935
p27950935.html
Sent from the AspectJ - users mailing list archive at Nabble.com.

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



*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************



Back to the top