SpringSource/spring-scala — pull request #27 by wodzuu (2013-07-18 20:14:24+00:00)
Title: TxSupport

Hi!

I was thinking about extending possibilities of context configuration with `FunactionalConfiguration` and additional traits like `ContextSupport`. I have created `TxSupport` trait that allows you to enable annotation driven transaction suport (see function `enableTransactionManagement(...)`). It's equivalent to traditional `` with all goodies as `mode`, `proxy-target-class`, `order`, `transactionManager name` configuration.

AspectJ proxying is set by passing instance of `AspectJTransactionMode` as `transactionMode` parameter to `enableTransactionManagement` (see included tests). Similarily, pass instance of `ProxyTransactionMode` to the same function to get load-time proxying.

Bye!