-
Notifications
You must be signed in to change notification settings - Fork 124
Proposal of basic AOP DSL #7
base: master
Are you sure you want to change the base?
Conversation
This looks pretty cool. I will try and merge it next week. |
I looked at it a bit more, and it definitely looks like a great addition to Spring Scala. However, there are some things I would like to improve before I merge it. I can either describe these changes here, as comments, or I can make them myself and put them up on my personal fork for you to inspect. Which do you prefer? Thanks again |
Let's try to go with the comments :) . |
First of all I'd like to thank you for all you recent additions to Spring Scala. When I started the project, I hoped people would contribute, and it is good to see people like yourself making this happen. So here are my comments: Things I like:
Things I am not sure about:
Things I don't like:
Bear in mind that I have little experience in writing DSLs in Scala (though I did write a couple in Java), so everything I said should be seen in that context. If there are valid reasons for doing things the way you did, then please teach me :). Once again, thanks for your help! |
Hello Arjen, Actually this pull request was a kind of proof of concept to see how you like the idea. Since your feedback is positive, I'd happy to polish the commit a little bit :) . Thank you for all the valuable comments. I'll address them and apply related improvements at the beginning of the next week. Best regards. |
As I would like to take a look at the JdbcTemplate issue #9 (comment) in the first place, I return to this pull request at the beginning of the next week. Stay tuned :) . |
Well, I think we can postpone this DSL until after Milestone 2 anyway, right? |
Definitely. This is nice-to-have, not urgent. I'll return to this subject after M2 release. |
Hi,
Spring comes with a pretty support for AOP configuration via XML DSL. Since Scala provides amazing DSL capabilities, it will be a true shame not to create Scala DSL for AOP as well.
I created simple AOP DSL enclosed within the
AopSupport
trait. Under the hood it createsProxyFactoryBean
configured with theDefaultPointcutAdvisors
.Actually many interesting things can be done in the area of Scala DSL for Spring AOP. This is the minimal usable part of it.
Of course if you like this pull request, I can create Scaladoc for it as well.
Best regards.