[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Instance of aspect
|
Try using the thisjoinpointstaticpart.You can get the name of the method
using the same
Regards
Maneesh
-----Original Message-----
From: varanasi kiran [mailto:varanasir@xxxxxxxxxxx]
Sent: Friday, September 26, 2003 3:14 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Instance of aspect
Hi,
I have an aspect which has a static variable defined. I want to set the
value to this static variable using a RMI Server class. Can anyone suggest
how can I do this?
Since aspect is just another java class (logically), I tried to access the
static varaiable to some value & it does not compile. I tried to compile
using ajc, BTW.
Following is my aspect:
public aspect Test {
public static String methodName = "";
pointcut callServlet() : execution ( * javax.servlet..*.*(..) );
before() : callServlet() {
System.out.println(" Method Name: " + methodName );
}
}
I tried to access "methodName" in RMI Server impl class as: Test.methodName.
Thanks in advance,
_________________________________________________________________
Keep up with the pace of change. Register for My Tech Ed.
http://server1.msn.co.in/sp03/teched/index.asp Realise your potential!
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users