The Bitter Coder Tutorials, Binsor Style VII: Switching Implementations
Previous posts in the series:
As Alex states, when switching implementations, you take the contract of your implementation and stuff it in an interface. Here’s the interface for our example:
So, let us get to the Binsor config. First off, I put my interface in a separate namespace, so I had to add an import clause to the top of the Windsor.boo file. Then, I add the StaticMessageOfTheDay component:
MOTD: Welcome to my Binsor tutorials
Changing out the motd.service component for the Wiki Quotes:
MOTD: Those works of art which have scooped up the truth and presented it to us as a living force â?" they take hold of us, compel us, and nobody ever, not even in ages to come, will appear to refute them. ~
It’s just that easy. Our quote is from Aleksandr Solzhenitsyn, whom I can safely say I’ve never heard of before, but I will take as a sign that this blog post is a work of art.
Next time, switching implementations by id….