<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Design Patterns on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/design-patterns/</link><description>Recent content in Design Patterns on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 15 Oct 2011 14:18:00 +0200</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/design-patterns/index.xml" rel="self" type="application/rss+xml"/><item><title>Template Method Pattern and constructors</title><link>http://blog.marko-apfel.de/posts/template-method-pattern-and-constructors/</link><pubDate>Sat, 15 Oct 2011 14:18:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/template-method-pattern-and-constructors/</guid><description>&lt;h2 id="motivation"&gt;Motivation&lt;/h2&gt;
&lt;p&gt;Often you want to have the possibility to call a special abstract or virtual &lt;code&gt;Initialize&lt;/code&gt;-method in a constructor of a base class to set individual initializing things in an override of this Initialize-method in a derived class.&lt;/p&gt;</description></item><item><title>Castle Windsor: order of configurations and resulting resolvings</title><link>http://blog.marko-apfel.de/posts/castle-windsor-order-of-configurations-and-resulting-resolvings/</link><pubDate>Tue, 03 May 2011 05:46:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/castle-windsor-order-of-configurations-and-resulting-resolvings/</guid><description>&lt;p&gt;If different implementations for the same interface are specified without named keys, then a resolving is made in order of the configurations. So the first fitting implementation is taken.&lt;/p&gt;
&lt;p&gt;Different implementations for the same interface is a typical scenario for patterns like “chain of responsibility” and “decorator”. If you want to describe such a chain you could use the next handler as a constructor- parameter in the actual one.&lt;/p&gt;</description></item></channel></rss>