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
ethod-execution(Object ClassA.myOperation(String arg))'
> in Type 'ClassA' (ClassA.java:###) advised by around advice from 'Aspect'
> (AspectProject-1.0.5.jar!Aspect.class(from Aspect.java))
> [INFO]
> [
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
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.
--
Alexander Kriegisch
http://scrum-master.de
> Am 16.09.2015 um 15:59 schrieb Rallavagu :
>
> All,
>
> Looking for some help
All,
Looking for some help to understand and clear up the scope of "After"
advice. I am under impression that "After" would help intercept method
after target method is executed before the result is sent across to the
client similar to "Before" advice where it would let intercept before
the t
Hi everyone,
I'm a novice to AspectJ and I've been struggling for the past few days
trying to weave an aspect at compile time with aspectj-maven-plugin. I
could do it with a simple project, but not in my main project. From what I
see in the maven build log, the pointcut is matched and advised by m