Hello,
I asked these two questions in the ajdt newsgroup but they were ignored.
Maybe I should have asked them here.
I have two cases and not sure if these are supported by aspectJ...
If they are not, would they be considered to be of any value to implement?
1) Intercepting instances going out of scope.
2) Matching methods that have calls to a specific joinpoint
Let me a little elaborate:
I have specific joinpoint say Foo.bar();
In the entire VM, I would like to match the methods that has call to
Foo.bar();
Ex:
class OtherFoo {
void bar(){
dosomething();
Foo foo = new Foo();
foo.bar();
doTheOtherThing();
}
}
Now I would like to match the entire OtherFoo.bar() and wrap it up with
an around advise... Such that advice executes the whole bar() rather
then foo.bar() line only...
H.Ceylan