Srs
Utilizo o interceptor no spring 2.0 sem problema, estou migrando para o 2.5 que não está funcionando.
houve alguma midificação no para a chamada?
abaixo xml e classe:
<bean id="testeDao" class="com.b2w.dao.impl.TesteDaoImpl">
</bean>
<bean id="logInterceptor" class="com.b2w.sac.util.interceptor.LogInterceptor" />
<bean id="ola" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>com.b2w.dao.TesteDao</value>
</property>
<property name="interceptorNames">
<list>
<value>logInterceptor</value>
</list>
</property>
<property name="target">
<ref bean="testeDao" />
</property>
</bean>
classe que intercepta
public class LogInterceptor implements MethodInterceptor
{
private final Log logger = LogFactory.getLog(getClass());
public Object invoke(MethodInvocation methodInvocation) throws Throwable
{
System.out.println("chegou ao invokker!!");
long startTime = System.currentTimeMillis();
try
{
Object retVal = methodInvocation.proceed();
return retVal;
}
finally
{
System.out.println("fim ao invokker!!");
}
}
}