From: Gustavo Martin Morcuende Date: Thu, 27 Jun 2013 00:16:52 +0000 (+0200) Subject: Remove old data. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=1ed669f3d2b31a2c6193ea26c1389c9298ec8680;p=JavaForFun Remove old data. --- 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"); - } -}