I would like to learn more about Windsor castle but it seems that it is overwhelming me a bit. I found a code sample here: http://ayende.com/Blog/archive/2007/03/07/Building-the-Policy-Injection-in-40-Minutes-with-Windsor.aspx. It's interesting indeed but it seems to be using a lot of extra code. I thought the power for policy injection was just that I could make some configuration file and inject it and have a pre-, post, and interception handler?
+2
A:
I think you misunderstood Ayende's post. Windsor is not the same thing as policy injection application block from Patterns and Practices. This functionality could be implemented in Windsor, as Ayende showed, but that would be far from the main goal of the project.
If you want just simple AOP, check Castle Dynamic Proxy.
If you want to learn more about Windsor, there are plenty of good resources out there.
Some links:
probably the most complete Dynamic Proxy tutorial by yours truly
And Ayende's very good introductory presentation from NDC conference.
Krzysztof Koźmic
2009-12-29 09:20:22
I thought Windsor Castle was the policy injection part. I guess I was mistaking then. Can you please update your reply with some good starter tutorials for beginners for both Castle Windsor (and for what it is meant) and that Castle Dynamic Proxy?
Nyla Pareska
2009-12-29 09:39:40
Thank you very much!
Nyla Pareska
2009-12-29 12:15:44