"Luntain" wrote : I set -Djboss.aop.optimized=false and there is sth wrong. I
have an authentication aspect which is intercepting calls to start() method. It
seems that now even the calls from the invokeNext are intercepted. I couldn't
even avoid it by using AND !within(com.balbla.AspectClass).
|
I don't understand what you mean
"Luntain" wrote : It's no use for me to invoke the method from within advice
without invokeNext. I don't know which method should be executed becouse I
intercept all get* methods.
|
The method invocation contains this, so one way to do this would be
|
| public Object advice(MethodInvocation invocation) throws Throwable
| {
| Method method = invocation.getAdvisedMethod();
| Object newTargetObject = //the way you want
| Method instead = newTargetObject.getClass().getMethod(method.getName(),
method.getParameterTypes());
| return instead.invoke(newTargetObject, invocation.getArguments());
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932148#3932148
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932148
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user