Ok. I think I have figured it out.

@AfterReturning(pointcut = "doAfterReturning()", returning = "result")

Here, I can directly use "result" as an Object in my method like,

public void afterReturningAdvice(JoinPoint joinPoint, Object result)

Thanks

On 9/16/15 7:44 AM, Rallavagu wrote:
Thanks Alexander. As a follow up, in case of logging and copying but not
modifying how do I access the result from JoinPoint or should I use
something else? Any clue would be great.

On 9/16/15 7:35 AM, Alexander Kriegisch wrote:
Yes, it is, so it is good enough for logging, copying etc. But if you
want to modify the result before passing it on to the caller you need
to use an 'around' advice.



_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to