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.");
}
- @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();
aspectj-weaving="autodetect"/>
- <bean id="myAdvice" class="es.dia.pos.n2a.spring.example.MyAdvice">
+ <bean id="myAdvice" class="de.spring.example.MyAdvice">
</bean>
</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" />
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>