I have the following method in my Dao
layer
public void setApples(List<Apple> apples)
I want to intercept the apples
collection every time the method is executed and push instances of Apple
to a sink.
I am trying to do the same using Aspects
now which annotation do I use to capture the concerned objects and what should be the pointcut expression? I was trying @AfterReturning
but this is a void method how do I capture the arguments of this? I am a beginner in AOP so please excuse if this question is too trivial.
UPDATE
The solution: Get method arguments using spring aop?