Aspect priority(weaving order) [message #587960] |
Tue, 03 May 2005 14:14 |
Eclipse User |
|
|
|
Originally posted by: absolutntn.netscape.net
Hi, I'm using Eclise 3.0.2 with AspectJ 1.5.0M1
The problem is I can't catch the pointcut on the method i "introduced" in
another aspect.
i have the following model:
interface ISomeInterface{
public void setProperty(String newValue);
}
aspect ASomeInterfaceImpl{
private String ISomeInterface._property;
public void ISomeInterface.setProperty(String newValue){
_property = newValue;
}
}
aspect AEventListener{
pointcut propertyChanged() :
execution(ISomeInterface+.setProperty(..));
after() : propertyChanged() {
// event handling code
// never reached
// so i tried to change the pointcut to:
pointcut propertyChanged() :
set(String ISomeInterface._property);
// but it doesn't work either :(((
}
}
so, from i can see the AEventListener is weaved(???) before the
ASomeIntImpl(which defines the setProperty default behaviour).
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds