How to use AOP to intercept a method call in super on an argument?
Posted
by hleinone
on Stack Overflow
See other posts from Stack Overflow
or by hleinone
Published on 2010-04-15T15:09:27Z
Indexed on
2010/04/15
15:13 UTC
Read the original article
Hit count: 150
I'm extending a class and overriding a method. All I want to do is to call super, but with a modified argument that gets intercepted upon one of its methods is called. An example makes it more clear:
// Foo is an interface and also this method is part of an interface
@Override
public void foo(Foo foo) {
// I want to intercept the call to foo.bar() in super
super.foo(foo);
}
I'd rather use a tool that doesn't require a compiler of its own. What would be the optimal one?
© Stack Overflow or respective owner