|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface AnnotationDrivenTx
Indicates that transaction configuration is defined by Spring's
@Transactional
annotation on bean classes,
and that proxies are automatically to be created for the relevant
annotated beans.
<tx:annotation-driven/>
Optional Element Summary | |
---|---|
AopMode |
mode
Should annotated beans be proxied using Spring's AOP framework, or should they rather be weaved with an AspectJ transaction aspect? AspectJ weaving requires spring-aspects.jar on the classpath, as well as load-time weaving (or compile-time weaving) enabled. |
int |
order
Controls the ordering of the execution of the transaction advisor when multiple advice executes at a specific joinpoint. |
boolean |
proxyTargetClass
Are class-based (CGLIB) proxies to be created? By default (false), standard Java interface-based proxies are created. |
java.lang.String |
transactionManager
The bean name of the PlatformTransactionManager that is to be used
to drive transactions. |
public abstract AopMode mode
AopMode.PROXY
, meaning AspectJ will not be required.
public abstract java.lang.String transactionManager
PlatformTransactionManager
that is to be used
to drive transactions.
This attribute is not required, and only needs to be specified
explicitly if the bean name of the desired PlatformTransactionManager
is not 'transactionManager'
.
public abstract int order
public abstract boolean proxyTargetClass
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |