Title: Pointcut for package protected methods
Yes, I thought I had tried that and got an error, but it definitely works.
 
thanks for that!!
 
 

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is

prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete

the message without disclosing it. Thank you.
E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only

send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any

consequences thereof.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Bodden
Sent: 21 September 2006 15:47
To: [email protected]
Subject: RE: [aspectj-users] Pointcut for package protected methods

You can do things like this, I believe:

 

execution((!private && !final && !public) * com.ericsson.nms.cif.cs.transaction.*.*(..))

 

 

Eric

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Hatton (AT/LMI)
Sent: Thursday, September 21, 2006 10:34 AM
To: [email protected]
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

 

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to