Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] help on pointcuts weaving

Because :

Socket.getInetadress.*(..)

tries to catch a method of a method !

If you want to catch all methods beginning by getInetadress you must write : Socket.getInetadress*(..)  witout the dot.

 

 

Jean-Louis Pasturel


De : aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Neeraja Maniyani
Envoyé : mercredi 25 juin 2008 07:27
À : aspectj-users@xxxxxxxxxxx
Objet : [aspectj-users] help on pointcuts weaving

 

Hi,

 

I am a newbie to aspectj trying to figure out how it works.

Could you please tell me if  we could  weave in aspects around java method calls like System.out.println or methods like Socket.getInetadress.* etc.

 

When I am trying to write a pointcut for call(* Socket.getInetadress(..)) it weaves in the aspects fine.

When the named pointcut is changed to capture call(* Socket.getInetadress.*(..)) then the respective joinpoints are not captured.Please could you help me with this.

 

thank you.

 

regards,

neeraja.

 

*********************************
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