| Author |
AspectJ problem with subtype-superType
|
Kartik Patel
Ranch Hand
Joined: Sep 12, 2005
Posts: 73
|
|
Hi, I have classes, class Foo{ public void A(int c,int d) throws Exception { } } class Bar extends Foo{ public static void main(String args[]) { Bar b=new Bar(); b.A(10,10); } } I want to put before pointcut on method A. I am using loadtime weaving so binding to perticular class happens from aop.xml my pointcut is defined something like this public abstract aspect point(); before(Bar bar,int i1,int i2):execution(public void A(int c,int d) throws Exception) && this(bar) { //Do something } aop.xml looks like <pointcut name="point" expression="within(Bar)"/> </concrete-aspect> Somehow its not working.. Can anyone please help ? Its real urgent.
|
Chop your own wood, and it will warm you twice. - Henry Ford
|
 |
Kartik Patel
Ranch Hand
Joined: Sep 12, 2005
Posts: 73
|
|
|
Anyone Please???
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Patience Is A Virtue. Surely you can't expect a board of volunteers to reply to each and every post in an hour? That said, AspectJ is not as widely used as something like Swing, and therefore people with knowledge about it are a bit harder to find. My own experience has lasted about a month back in 2003.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Martijn Verburg
author
Bartender
Joined: Jun 24, 2003
Posts: 3268
|
|
Move to Application Frameworks, hopefully a Spring experienced person can assist (Spring has Aspect J all over it )
|
Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
|
 |
 |
|
|
subject: AspectJ problem with subtype-superType
|
|
|