[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Call Join points
|
One other side note, the reason for the call join point is that the
Interface DataContracts is coming from an external JAR file that I am
referencing in my project.
Also, I am using AJDT 1.1.12 within Eclipse.
-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of DiFrango, Ron
Sent: Wednesday, May 04, 2005 10:22 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Call Join points
Okay, I have a situation that I can not figure out. I have the
following interface declared:
public interface DataContracts
{
/**
* Constant for the <code>AccountActionsData</code> interface(s).
*/
public static AccountActionsData ACCOUNT_ACTIONS =
AccountActionsDataService.getDataInstance();
}
What I want to do is pick out any calls to the
DataContracts.ACCOUNT_ACTIONS so I created the following aspect:
public aspect ExceptionHandlerInsertion {
pointcut exceptionHandlingInsertion() :
call(* DataContracts.*.*(..));
Object around() : exceptionHandlingInsertion()
{
try
{
return proceed();
}
catch(Exception e)
{
return null;
}
}
}
The only thing is that it does not pick out any calls such as the
following:
DataContracts.ACCOUNT_ACTIONS.update("Aspectj");
Any thoughts on how I can make this work?
Thanks in advance,
Ron
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users