From: gumartinm Date: Thu, 10 Nov 2011 22:52:14 +0000 (+0100) Subject: Fixing packages. X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=d893b2a1de8f689b4274c6801e49d6bec0291d3b;p=JavaForFun Fixing packages. This code came from a personal project, and some paths did not match with the current configuration. Now they match and this example should run smoothly. --- 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 5a5e2a3..5f61578 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 @@ -9,7 +9,7 @@ import de.spring.example.TransactionManagerN2A; public class MyAdvice { - @Before("@annotation(es.dia.pos.n2a.spring.example.annotation.initTransactionalN2A)") + @Before("@annotation(de.spring.example.annotation.initTransactionalN2A)") public void initTransactionalN2A() { System.out.println("I am the Advice initTransaction."); @@ -17,7 +17,7 @@ public class MyAdvice { } - @After("@annotation(es.dia.pos.n2a.spring.example.annotation.commitTransactionalN2A)") + @After("@annotation(de.spring.example.annotation.commitTransactionalN2A)") public void commitTransactionalN2A() { System.out.println("I am the Advice commitTransaction."); TransactionManagerN2A.getInstance().commitTransaction(); diff --git a/SpringJava/SpringLTW/spring-ltw-example/src/main/resources/spring-config.xml b/SpringJava/SpringLTW/spring-ltw-example/src/main/resources/spring-config.xml index c6b5893..b358f70 100644 --- a/SpringJava/SpringLTW/spring-ltw-example/src/main/resources/spring-config.xml +++ b/SpringJava/SpringLTW/spring-ltw-example/src/main/resources/spring-config.xml @@ -20,7 +20,7 @@ aspectj-weaving="autodetect"/> - + @@ -44,7 +44,7 @@ @@ -55,8 +55,8 @@ In order to find annotations in inner classes we have to create Spring beans of them. --> - - + +