Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Aspect priority(weaving order)
Aspect priority(weaving order) [message #587960] Tue, 03 May 2005 14:14
Eclipse UserFriend
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).
Previous Topic:Use AJDT with ant
Next Topic:Aspect priority(weaving order)
Goto Forum:
  


Current Time: Fri Apr 26 16:57:37 GMT 2024

Powered by FUDForum. Page generated in 0.03773 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top