I have the problem that my custom Interceptor class doesn't get invoked when
calling the constructor of a superclass.
Example:
public class Bar extends Foo {
public Bar() {
super(); <------THIS IS WHAT I WOULD LIKE TO INTERCEPT
System.out.println("constructor of Bar was called");
}
public void bar() {
System.out.println("mehtod of Bar was called");
}
}
I tried out many combination of pointcut-definitions, so that my Interceptor
class really intercepts anything there is to intercept, but i still cannot
intercept calls/executions to super(..). Neither with the execution(public
*.*->new()), matching constructors nor with the execution (public * *.*->*()),
trying to match the method signature instead.
Any help is greatly apprechiated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925029#3925029
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925029
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user