From 1ed669f3d2b31a2c6193ea26c1389c9298ec8680 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Thu, 27 Jun 2013 02:16:52 +0200 Subject: [PATCH] Remove old data. --- .../src/main/java/de/spring/example/MyAdvice.java | 2 +- .../src/main/java/de/spring/example/web/Gus.java | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/web/Gus.java diff --git a/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/MyAdvice.java b/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/MyAdvice.java index 4704d0b..bee04c1 100644 --- a/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/MyAdvice.java +++ b/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/MyAdvice.java @@ -8,7 +8,7 @@ import org.aspectj.lang.annotation.Before; public class MyAdvice { - @Before("execution(* de.spring.example.web.Gus.prueba())") + @Before("@annotation(de.spring.example.annotation.initTransactional)") public void initTransactional() { System.out.println("I am the Advice initTransaction."); diff --git a/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/web/Gus.java b/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/web/Gus.java deleted file mode 100644 index 2d11f75..0000000 --- a/SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/web/Gus.java +++ /dev/null @@ -1,11 +0,0 @@ -package de.spring.example.web; - -import de.spring.example.annotation.initTransactional; - -public class Gus { - - @initTransactional - public void prueba() { - System.out.println("GUSOOK"); - } -} -- 2.1.4