From 3ffc2ba48d1dffc4b87f754e61ff5eaebeeb36f9 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 9 Dec 2009 15:32:58 +0000 Subject: [PATCH] revised section on inheriting annotations from interfaces --- spring-framework-reference/src/transaction.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spring-framework-reference/src/transaction.xml b/spring-framework-reference/src/transaction.xml index 65af86a9d78..da6ab02e456 100644 --- a/spring-framework-reference/src/transaction.xml +++ b/spring-framework-reference/src/transaction.xml @@ -1416,9 +1416,7 @@ public class DefaultFooService implements FooService { @Transactional annotation is not enough to activate the transactional behavior. The @Transactional annotation is simply - metadata that can be consumed by something that is + metadata that can be consumed by some runtime infrastructure that is @Transactional-aware and that can use the metadata to configure the appropriate beans with transactional behavior. In the preceding example, the @@ -1433,8 +1431,8 @@ existing BeanPostProcessor provided or something else--> that is @Transactional annotation on an interface (or an interface method), but this works only as you would expect it to if you are using interface-based proxies. The fact that - annotations are not inherited means that if you - are using class-based proxies + Java annotations are not inherited from interfaces + means that if you are using class-based proxies (proxy-target-class="true") or the weaving-based aspect (mode="aspectj"), then the transaction settings are not recognized by the proxying and weaving