Galera talvez alguém possa me ajudar
Estou tentando botar para executar um exemplo de simples de AOP com Spring, vejam o código abaixo.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<aop:aspectj-autoproxy/>
<bean name="servico" class="exemplo_12_orientacaoAspecto.ServicoPessoa">
</bean>
<bean name="eaop" class="exemplo_12_orientacaoAspecto.advices.ASpectAdvicePessoa">
</bean>
</beans>
package exemplo_12_orientacaoAspecto.advices;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
@Aspect
public class ASpectAdvicePessoa {
//simbolos para pointcuts
@Before("execution(public void excluirPessoa())")
public void manipular(){
System.out.println("fez algo");
}
}