[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Advising advice
|
- From: Sago Djuret <sagodjuret@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 04:11:42 -0700 (PDT)
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=ABRvskmAU8k6VzQCPw0rVh2B1RUepHINxZxMfQWcSiSFWdg5z9XGcpkg4wq8f02GIoVh6/3YInUpzohVQMxpEuz6x1nIkVg6OJUPqqeadLRvdcT2zL665Q1KAPLwQfqvWUXdu1h9hQI3a0CNdRW4Vw1UZN0xY38fdIVour6inXw=;
Is there a way to access the thisJoinPoint of an advice from a second advice?
The following pointcut successfully picks out interesting calls from other advice.
pointcut breachOfContract( boolean condition ):
call( * require( boolean ))
&& args( condition );
How can I access the data of the original thisJoinPoint? Something like:
before( boolean condition ): breachOfContract( condition ) {
System.out.println( thisJoinPoint.getThis().getSourceLocation() );
}