Hello,
I am just starting with Spring, and AOP, and I need some help.

There is a situation:
I have a bean ContactDao with the advised method:
updatePerson( Contact contact ).

My advisor aspect class UpdateInterceptor has a method
fetchData() that is to be invoked right before the updatePerson

I usen schema configuration and it looks like this:

...
<bean id="callInterceptor" class="demo.UpdateInterceptor" />

<aop:config>
<aop:aspect ref="callInterceptor">

<aopointcut id="checkData" expression="execution( * *.updatePerson(..))" />

<aop:before method="fetchData" pointcut-ref="checkData" />
<aop:before method="compareData" pointcut-ref="checkData" />
<aop:before method="updateData" pointcut-ref="checkData" />

</aop:aspect>
</aop:config>
...

My question is:

Is it possible to intercept the contact argument passed from the ContactDAO to be processed inside the the fetchData() method (possible Database check for optimistic locking)?

Thanks,

Zare