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

Hi
 
try this:
 
pointcut name2()
  : call(public * Socket.getInetAddress(..)) && withincode(public * InetAddress.getLocalHost(..));
  
  
  before() : name2() {
   System.out.println("able to weave");
}
 

Hermod

 


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Neeraja Maniyani
Sent: Wednesday, June 25, 2008 1:19 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] help on pointcuts weaving

My poincut and advice looks like this:
 
pointcut name2()
  : call(public * Socket.getInetAddress(..)) && withincode(public * Socket.getInetAddress.getLocalHost(..));
  
  
  before() : name2() {
   System.out.println("able to weave");
}
 
Still i am unable to weave in the advice at Socket.getInetAddress.getLocalHost
 
Please let me know where i am going wrong.
 
thanks.
 
 
 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Back to the top