Actually, this doesn't work ... I originally thought it did, but got a
syntax error when I tried it.
I've
reverted to my original solution unless anyone else has a better
mechanism????
Yes, I
thought I had tried that and got an error, but it definitely
works.
thanks
for that!!
You
can do things like this, I believe:
execution((!private
&& !final && !public) *
com.ericsson.nms.cif.cs.transaction.*.*(..))
From:
aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx]
On Behalf Of David Hatton (AT/LMI) Sent: Thursday, September
21, 2006 10:34 AM To: aspectj-users@xxxxxxxxxxx Subject:
[aspectj-users] Pointcut for package protected
methods
Hi,
I am trying
to define a point but for methods in a particular package which are either
protected or package protected (default access).
I can't come
up with anything better than this:
pointcut protectedTxMethods() :
execution(* com.ericsson.nms.cif.cs.transaction.*.*(..)) &&
execution(!final * com.ericsson.nms.cif.cs.transaction.*.*(..))
&&
execution(!private * com.ericsson.nms.cif.cs.transaction.*.*(..));
Is there a
better way, or is this the only way to do it???
/David
|