Eclipse Community Forums
Forum Search:

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


Current Time: Thu Jul 31 15:48:51 EDT 2014

Powered by FUDForum. Page generated in 0.01586 seconds