Fixing packages.
authorgumartinm <gu.martinm@gmail.com>
Thu, 10 Nov 2011 22:52:14 +0000 (23:52 +0100)
committergumartinm <gu.martinm@gmail.com>
Thu, 10 Nov 2011 22:52:14 +0000 (23:52 +0100)
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.

SpringJava/SpringLTW/spring-ltw-example/src/main/java/de/spring/example/MyAdvice.java
SpringJava/SpringLTW/spring-ltw-example/src/main/resources/spring-config.xml

index 5a5e2a3..5f61578 100644 (file)
@@ -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();        
index c6b5893..b358f70 100644 (file)
@@ -20,7 +20,7 @@
                                                   aspectj-weaving="autodetect"/>
     
        
-       <bean id="myAdvice" class="es.dia.pos.n2a.spring.example.MyAdvice">
+       <bean id="myAdvice" class="de.spring.example.MyAdvice">
        
     </bean>
 
@@ -44,7 +44,7 @@
        </bean>
        
        <bean id="transactionManagerN2A" 
-              class="es.dia.pos.n2a.spring.example.TransactionManagerN2A"
+              class="de.spring.example.TransactionManagerN2A"
               factory-method="getInstance">
         <property name="transactionManager">
             <ref bean="transactionManager" />
@@ -55,8 +55,8 @@
                In order to find annotations in inner classes we have to create Spring 
        beans of them.
     -->
-    <bean id="testOuter" class="es.dia.pos.n2a.spring.example.web.Test"/> 
-    <bean id="testInner" class="es.dia.pos.n2a.spring.example.web.Test$InnerTest">
+    <bean id="testOuter" class="de.spring.example.web.Test"/> 
+    <bean id="testInner" class="de.spring.example.web.Test$InnerTest">
         <constructor-arg ref="testOuter"/>
     
     </bean>