-
This post is a playground for me, to try out some ideas I want to include in my talk about Windsor at KGD.NET meeting later this month. Scenario We have a messaging application built around two interfaces: public interface Command { } public interface Handler { void Execute(); } public interface Handler<T>...
-
With Windsor 2.1.1 out the door , we’re already working on version 3.0 (and looking for your feedback and ideas for the next version !). Yesterday I committed first “big” feature that probably will make it to the release. DISCLAIMER: All the code shown here represents a work in progress...
-
Just before I emigrated to Australia, I took on a small contract to build a website for a UK company who wanted to start up a new kind of UK recruitment site, one where employers could advertise directly, and more specifically one where recruitment agencies couldn’t. The result was Empty Lemon...
-
It took a little longer than I planned but here we go again. In the meantime ActiveRecord 2.1 was released , and soon after that a minor update bringing one cool big feature . From now on we’ll be working on version 2.1.2 . Picking up from where we left off last time . We have a user entity. Since...
-
Disclaimer: This post is about the idea, not about the implementation. The implementation is crippled, not thread safe, will work only in few scenarios and only if used properly. Do not copy and blindly use this code . The problem One of unique features of Windsor is that it manages the lifecycle of...
-
Update: Due to a regression error discovered in Windsor Factory Support Facility, we decided to act fast and provide updated package of Windsor, without the issue. Get it here. Sorry for the inconvenience. What better way of starting a new year can there be, than fresh set of releases from Castle Project...
-
We’re building an application to gather and compare performance metrics of various laptop configurations in given set of benchmarks. As such we’re going to start with certain set of entities, first of which will be the User. We’ll start off by defining our User entity, configuring ActiveRecord , and...
-
Jimmy published very interesting post about generic registration of certain partially closed types in StructureMap container. Go read the entire post first, it’s really worth it. You’re back? OK. Jimmy uses StructureMap container in his sample, and after I saw it I immediately thought about...
-
Disclaimer: Notice that code shown here is quite new and is subject to change. If you’re reading this and it’s 2010 it’s likely that the code now is slightly different. I may come back and revisit the post if there are any changes, but don’t hold my word on it. Pulling from the container General rule...
-
Today a conversation sparked off on Twitter, started by Jimmy Bogard and Matt Hinze , and then carried on by myself and Glenn Block . The basic starting point was what the difference was between using an IoC container like Windsor or StructureMap and using MEF (the Managed Extensibility Framework ) I...
-
UPDATE: I renamed the method from WithParameters to DynamicParameters to avoid confusion and be consistent with Parameters method which is used for static parameters. I just committed small new feature to Castle Windsor, that I think can nicely clean up your code. It remedies the following problem: Problem...
-
Few months ago, a user asked the following question on the Castle users discussion group. A friend asked me about the same thing today, so I thought I’d blog this so that’s easier to find than the discussion group thread. Anyway, here’s the question: say I have the following types public interface ISometype<T>...
-
Jono just pushed the first beta version of the Castle Dynamic Proxy 2.2 to the SourceForge . Don’t let the minor version number mislead you – this is a substantial improvement over the version 2.1. The changelog contains over 40 positions. I’m going to go over the most important ones...
-
One of the commonly asked questions about Castle Dynamic Proxy: How do I use CreateClassProxy to wrap an existing object to intercept calls to its virtual members? Short answer is – you can’t. And if you think about it, there’s a very good reason for that. Since classes are stateful, and there's...
-
I just committed a very cool feature to Castle Windsor/MicroKernel that adds lazy registration capabilities. By lazy registration I mean – you get a chance to register a component right at the spot when it’s about to be resolved. This enables things like integration with external sources of components...