Ayende @ Rahien

Unnatural acts on source code

Windsor Patterns

I have no idea how I missed it so far, but Alex has a set of posts showing all sorts of interesting usage patterns (and design patterns) that can be used with Windsor.

Good content, and impressive line up. Add an into to IoC at the beginning, a bit about writing facilities and interceptors and you got a full course material in your hand.

Comments

Alex Henderson
05/02/2007 10:05 PM by
Alex Henderson

The series is getting there slowly - I suspect I might end up running over the initial 20 post estimate I made... I've yet to cover things like:

Comission/Decomission Lifecycles... and maybe how to add your own ... not sure if it's that valuable to most people though, I've only ever done it once for a project.

Additional lifestyles, and writing your own.

Overloaded constructor behavior (i.e. how the internal voting mechanism chooses a candidate)

The internals of the container, and how to register your own Component model manually.

Writing interceptors (can lead on from the manually registering a component model).

Writing facilities (combining the 2 above)

I guess I was reluctant to call "service arrays" an aggregation, certainly that's the pattern/approach I presented, but I think you could use the same approach for things that don't behave as an aggregation... perhaps an array of "IEventful" services, where in the constructor it just attaches itself to events on each of the services - I'm not sure I see that as aggregation myself... ??

Alex Henderson
05/02/2007 10:06 PM by
Alex Henderson

Oh and another thing I haven't covered yet is generics... can you think of anything else worth covering?

hammett
05/02/2007 11:40 PM by
hammett

You might consider writing about subsystems (how they are different from facilities) and converters.

Luke Melia
05/03/2007 01:14 AM by
Luke Melia

Wow, great find Ayende. Alex, this is an excellent contribution to the community. Thanks so much!

Alex Henderson
05/03/2007 02:31 AM by
Alex Henderson

Converters is a good one, definitely worth covering... and yeah subsystems is also important, I quite like subverting the resource subsystem for my own needs ;o)

I'll add it to my list...

Alex James
05/03/2007 04:00 AM by
Alex James

...Considering I meet up with Alex H once a week for the Ellerslie chapter Architecture Chat in Columbus, it is kind of embarrassing that I had to get this via Ayende, seems Alex has put together a great series of post on using Castle's Windsor container...

Ayende Rahien
05/03/2007 04:06 AM by
Ayende Rahien

This method can be used for several way, in the case you presented, it is used for aggregation, the eventful case is used to pass data.

I would like to think about the two as two separate use-cases, with common implementation.

Too early in the morning to think about missing patterns, I'll get to that.

Comments have been closed on this topic.