From d893b2a1de8f689b4274c6801e49d6bec0291d3b Mon Sep 17 00:00:00 2001 From: gumartinm Date: Thu, 10 Nov 2011 23:52:14 +0100 Subject: [PATCH] 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. --- .../src/main/java/de/spring/example/MyAdvice.java | 4 ++-- .../spring-ltw-example/src/main/resources/spring-config.xml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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. --> - - + + -- 2.1.4