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.

Print | posted on Thursday, May 03, 2007 12:46 AM

Feedback


Gravatar

# re: Windsor Patterns 5/3/2007 1:05 AM 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... ??


Gravatar

# re: Windsor Patterns 5/3/2007 1:06 AM Alex Henderson

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


Gravatar

# re: Windsor Patterns 5/3/2007 2:40 AM hammett

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


Gravatar

# re: Windsor Patterns 5/3/2007 4:14 AM Luke Melia

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


Gravatar

# re: Windsor Patterns 5/3/2007 5:31 AM 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...


Gravatar

# re: Windsor Patterns 5/3/2007 7:00 AM 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...


Gravatar

# re: Windsor Patterns 5/3/2007 7:06 AM 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.


 re: Windsor Patterns 5/11/2007 7:22 PM Craig Neuwirt

Are these links still valid?

I can't seem to get to them.

thanks,
craig

Comments have been closed on this topic.