[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] help on pointcuts weaving
|
- From: "Neeraja Maniyani" <neeraja.maniyani@xxxxxxxxx>
- Date: Wed, 25 Jun 2008 19:08:27 +0530
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=uxLJpL1TEsUQXpSv1JjMq32V/2LMkF8BJxtAT2hym/U=; b=S9SBlE4/fuTFrW1Jo5hf6mZxMZ893f+CQonoD7KV5TEoLN1vTukE5WSeLiFK/BBR6x 06FgRLxcntE44iQLU3/pV0BtyjhEw0cMqhqoNjjCMs9MwBZQdjsiF7Elka3wDnOoJD9X wzQ0n1PrY5p8CVWzSXYghmJDgcSoV1t3ckJxg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=MqZKg4NMMr7I0dmtu1DVfk/PL46SBw88RlQbdfSc+HILhpFCGerA8jYPI3N1yblBtq q2D7Vspq7Svfh8MUpz0bkJVbGV24bjOacu7f2fYtPBs4BMrYHwx/CetXk0CjLoQaovfz OsSt5jP1rBX52zCLkRigNOfe6CD4fxUPAu4I4=
hi,
The call in the java class looks like this
InetAddress testAddress = null;
Socket s = new Socket(addr, 80);
testAddress = s.getInetAddress().getLocalHost();
I want the advice to weave in at this "s.getInetAddress().getLocalHost(); " point.
The pointcut and advice with which i currently tested looks like this
pointcut name2()
: call(public * Socket.getInetAddress(..)) && withincode(public * InetAddress.getLocalHost(..));
before() : name2() {
System.out.println("able to weave"); }
I have tested using this call(public * Socket.getInetAddress..*(..)).
But the advice dint get weaved in
thank you.