Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Excluding all methods of an interface

Does

execution(* MyEJB.*(..)) && !execution(* EntityBean.*(..))

work?

Cheers,

Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming
m: 520 591-1849

Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt

Articles on AspectJ:
* http://tinyurl.com/66vu and http://tinyurl.com/66vv
On Jan 25, 2005, at 8:33 AM, Beaumont, Serge wrote:

Hello,

I am making an aspect that advises an EJB bean class with an execution
pointcut. However, I want to exclude any of the "official" methods as
defined by for instance javax.ejb.SessionBean. Is there any way to do
this, other than doing !setSessionContext, !ejbCreate etc. etc. ? There does not seem to be a way to say "exclude/include methods from interface A
in class C"...


Grtz,

Serge.

Serge Beaumont
Technical Software Architect
Sogeti Nederland BV
020-6606600 (+0391)
serge.beaumont@xxxxxxxxx
www.sogeti.nl



Disclaimer:
This message contains information that may be privileged or confidential and is the property of Sogeti Nederland B.V. or its Group members. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

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




Back to the top