<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Philipp Meier&#039;s weblog</title>
	<atom:link href="http://www.fnogol.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnogol.de</link>
	<description>Philipp Meier writes about Clojure and Software development</description>
	<lastBuildDate>Wed, 08 Feb 2012 08:49:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><!-- trademarks --></a><a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><img border="0" width="0" height="0" style="padding:0;margin:0;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>	<item>
		<title>Going to euroclojure</title>
		<link>http://www.fnogol.de/archives/2012/02/08/going-to-euroclojure/</link>
		<comments>http://www.fnogol.de/archives/2012/02/08/going-to-euroclojure/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 08:49:41 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/?p=103</guid>
		<description><![CDATA[I just bought my ticket for euroclojure on May 24-25. I&#8217;m looking forward to it and hope to meet all those awesome clojure developers in real life. address]]></description>
			<content:encoded><![CDATA[<p>I just bought my ticket for <a href="http://euroclojure.com/2012/">euroclojure</a> on May 24-25. I&#8217;m looking forward to it and hope to meet all those awesome clojure developers in real life.</p>
<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><span style="display:none;">report</span></a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2012/02/08/going-to-euroclojure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">news</a></span>	<item>
		<title>Events are protocol methods and event handlers are protocol implementations</title>
		<link>http://www.fnogol.de/archives/2011/06/22/events-are-protocol-methods-and-event-handlers-are-protocol-implementations/</link>
		<comments>http://www.fnogol.de/archives/2011/06/22/events-are-protocol-methods-and-event-handlers-are-protocol-implementations/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 22:30:31 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[clojure]]></category>
		<category><![CDATA[event sourcing]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/?p=99</guid>
		<description><![CDATA[A little experiment in clojure because events can be defined as procotol methods and event handlers are procotol implementations. Available as this gist.]]></description>
			<content:encoded><![CDATA[<p>A little experiment in clojure because events can be defined as procotol methods and event handlers are procotol implementations.</p>
<p>Available as this <a href="https://gist.github.com/1041419">gist</a>.</p>
<p><script src="https://gist.github.com/1041419.js?file=handler-protocol.clj"></script></p>
<div style="display:none;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">faq</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2011/06/22/events-are-protocol-methods-and-event-handlers-are-protocol-implementations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"></a>	<item>
		<title>State is a fold over events.</title>
		<link>http://www.fnogol.de/archives/2011/06/16/state-is-a-fold-over-events/</link>
		<comments>http://www.fnogol.de/archives/2011/06/16/state-is-a-fold-over-events/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 15:54:10 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[clojure]]></category>
		<category><![CDATA[event sourcing]]></category>
		<category><![CDATA[state]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/?p=86</guid>
		<description><![CDATA[A little experiment in clojure because state is a fold over events. Available as this gist. support]]></description>
			<content:encoded><![CDATA[<p>A little experiment in clojure because state is a fold over events.</p>
<p>Available as this <a href="https://gist.github.com/1029550">gist</a>.</p>
<p><script src="https://gist.github.com/1029550.js?file=state-is-a-fold.clj"></script></p>
<a href="http://www.fnogol.de/stopstop.php" rel="nofollow" style="display:none;">language</a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2011/06/16/state-is-a-fold-over-events/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	<span style="display:none;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">feedback</a></span>	<item>
		<title>Bye bye java! Welcome clojure.</title>
		<link>http://www.fnogol.de/archives/2011/04/28/bye-bye-java-welcome-clojure/</link>
		<comments>http://www.fnogol.de/archives/2011/04/28/bye-bye-java-welcome-clojure/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 22:56:44 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[clojure]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/?p=75</guid>
		<description><![CDATA[A long time that I&#8217;ve been blogging&#8230; I lost interest in java (as a language) in favour of clojure. Finally a LISP done right (in my eyes). No more fighting with OO design that did never gave me the expression power I experience with clojure&#8217;s concept of time and identity, macros and community. I&#8217;d changed [...]]]></description>
			<content:encoded><![CDATA[<p>A long time that I&#8217;ve been blogging&#8230; I lost interest in java (as a language) in favour of <a href="http://clojure.org">clojure</a>. Finally a LISP done right (in my eyes). No more fighting with OO design that did never gave me the expression power I experience with clojure&#8217;s concept of <a href="http://boss-level.com/?p=82">time and identity</a>, <a href="http://www.slideshare.net/pcalcado/lisp-macros-in-20-minutes-featuring-clojure-presentation">macros</a> and <a href="http://groups.google.com/group/clojure">community</a>. I&#8217;d changed the title of my blog to reflect my personal realignment.</p>
<p>So, bye bye Java, you served me well over the last 16 years (wow that&#8217;s a long time!). Welcome clojure! You make me feel more powerful day for day. But beware: YMMV!</p>
<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><!-- trademarks --></a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2011/04/28/bye-bye-java-welcome-clojure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><img border="0" width="0" height="0" style="padding:0;margin:0;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>	<item>
		<title>Dependency Injection is not only about compile time dependencies</title>
		<link>http://www.fnogol.de/archives/2008/08/20/dependency-injection-is-not-only-about-compile-time-dependencies/</link>
		<comments>http://www.fnogol.de/archives/2008/08/20/dependency-injection-is-not-only-about-compile-time-dependencies/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 09:04:57 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[dependency injection]]></category>
		<category><![CDATA[ioc]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/?p=73</guid>
		<description><![CDATA[Tinou complains that dependency Injection was broken. I want to add some points to his / her statements: The problem I&#8217;ve always had with DI frameworks, be it Spring or Guice, is they create this nasty dependency tree. If you don&#8217;t want to use GlobalApplicationContext.getBean() or Injector.getInstance() then you&#8217;ll need to inject all your dependencies [...]]]></description>
			<content:encoded><![CDATA[<p>Tinou complains that <a href="http://floatingpoint.tinou.com/2008/08/fixing-dependency-injection-with-interface-reification.html">dependency Injection was broken</a>. I want to add some points to his / her statements:</p>
<blockquote><p>The problem I&#8217;ve always had with DI frameworks, be it Spring or Guice, is they create this nasty dependency tree.  If you don&#8217;t want to use GlobalApplicationContext.getBean() or Injector.getInstance() then you&#8217;ll need to inject all your dependencies at the root.  It annoys the crap out of me, but I suppose there&#8217;s just no way around it&#8230;<br />
Except if the language had a mechanism to realize interfaces and abstract classes at runtime, either built-in or through some extension.<br />
[...]The fundamental problem with all dependency injection tools is they are trying to do what  language should be doing (instantiating objects that implement some interface[!]).
</p></blockquote>
<p>These toughts might be correct if you reduce dependency injection to &#8220;instanciate a class that implement this or that inferface&#8221;. But I understand dependency injection as a tool for inversion of control and decoupling of implementations. Dependency injection shall enable the developer to reconfigure the application without compilation of the compontents that depend on eachother.</p>
<p>Yes, at some point you will have to decide which implementation of a certain interface shall be used, and one can argue where this &#8220;wiring information&#8221; should be placed: <a href="http://www.springframework.org">Spring</a> uses an XML file, <a href="http://www.picocontainer.org/">PicoContainer</a>s can be composed hierachically, <a href="code.google.com/p/google-guice/">guice</a> can use annotations. But if you have only one implementation of the interface you can do without a dependency injection framework at all.</p>
<h3>Updates</h3>
<ul>
<li>Fixed typos</li>
<li>As pointed out by Paul Hammant PicoContainer of course can be configured with XML as well as with Groovy, Python, Beanshell and Ruby. I&#8217;m sure one can add Yaml and Json easily as well. Furthermore I think this is possible to some extend for Spring and Guice as well and the <a href="http://www.qi4j.org/">Qi4J</a> developers would be able to add something to this, too. What I wanted to make clear is that one can argue about when, where and how to wire the components; the different ways the mentioned frameworks offer emphasize this.</li>
</ul>
<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><span style="display:none;">report</span></a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2008/08/20/dependency-injection-is-not-only-about-compile-time-dependencies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	<span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">news</a></span>	<item>
		<title>This must be shared: /^1?$&#124;^(11+?)\1+$/ to check for prime numbers</title>
		<link>http://www.fnogol.de/archives/2008/02/27/this-must-be-shared-1111-to-check-for-prime-numbers/</link>
		<comments>http://www.fnogol.de/archives/2008/02/27/this-must-be-shared-1111-to-check-for-prime-numbers/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 09:54:54 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/archives/2008/02/27/this-must-be-shared-1111-to-check-for-prime-numbers/</guid>
		<description><![CDATA[That&#8217;s all and checks if a string does not consist of a prime number of &#8220;1&#8220;, e.g. &#8220;111&#8221; is prime whereas &#8220;1111&#8221; is not: [source:ruby] /^1?$&#124;^(11+?)\1+$/ [/source] Although this seems cryptic its rather straight forward: match on either &#8220;&#8221; or &#8220;1&#8221; (first part until &#8220;&#124;&#8220;) or match on a substring of 2 or more &#8220;1&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s all and checks if a string does not consist of a prime number of &#8220;<code>1</code>&#8220;, e.g. &#8220;<code>111</code>&#8221; is prime whereas &#8220;<code>1111</code>&#8221; is not:</p>
<p>[source:ruby]<br />
/^1?$|^(11+?)\1+$/<br />
[/source]</p>
<p>Although this seems cryptic its rather straight forward: match on either &#8220;&#8221; or &#8220;<code>1</code>&#8221; (first part until &#8220;<code>|</code>&#8220;) or match on  a substring of 2 or more &#8220;<code>1</code>&#8221; with repeatedly fits the whole. For the string &#8220;<code>111111</code>&#8221; the substring &#8220;<code>11</code>&#8221; fits in 3 times.</p>
<p>Over all its a very high level description of a primality test. I never considered regular expressions as a mathematical domain language.</p>
<p>More details on <a href="http://www.noulakaz.net/weblog/2007/03/18/a-regular-expression-to-check-for-prime-numbers/">Avinash Meetoo&#8217;s Blog</a>.</p>
<div style="display:none;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">faq</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2008/02/27/this-must-be-shared-1111-to-check-for-prime-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"></a>	<item>
		<title>Don&#8217;t subclass DefautListCellRenderer for Swing&#8217;s Nimbus LAF</title>
		<link>http://www.fnogol.de/archives/2008/02/07/dont-subclass-defautlistcellrenderer-for-nimbus/</link>
		<comments>http://www.fnogol.de/archives/2008/02/07/dont-subclass-defautlistcellrenderer-for-nimbus/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 15:35:30 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jcombobox]]></category>
		<category><![CDATA[nimbus]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/archives/2008/02/07/dont-subclass-defautlistcellrenderer-for-nimbus/</guid>
		<description><![CDATA[If you follow the common practice to subclass JLabel to add some formatting to your combobox you will be surprised that this will break the rendering of JComboBoxes in the Nimbus Look Ant Feel. Basically the nice glass like look of the combobox will disappear and the old flat look will be restored. This comes [...]]]></description>
			<content:encoded><![CDATA[<p>If you follow the <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html#renderer">common practice</a> to subclass JLabel to add some formatting to your combobox you will be surprised that this will break the rendering of <code>JComboBoxes </code> in the <a href="https://nimbus.dev.java.net/">Nimbus</a> Look Ant Feel.</p>
<p><a href='http://www.fnogol.de/wp-content/uploads/2008/02/renderer-nimbus-bad.png' title='Examples of bad JLabel-based CellRenderer'><img src='http://www.fnogol.de/wp-content/uploads/2008/02/renderer-nimbus-bad.png' alt='Examples of bad JLabel-based CellRenderer' /></a></p>
<p>Basically the nice glass like look of the combobox will disappear and the old flat look will be restored. This comes due to Nimbus using a custom CellRenderer:</p>
<p><code>javax.swing.plaf.synth.SynthComboBoxUI$SynthComboBoxRenderer</code></p>
<p>Fortunately this renderer is based on JLabel, too. This is why you can simply wrap the renderer and add some blinkenlights when needed:</p>
<p><a href='http://www.fnogol.de/wp-content/uploads/2008/02/renderer-nimbus-good.png' title='Good example of renderer wrapping the original renderer'><img src='http://www.fnogol.de/wp-content/uploads/2008/02/renderer-nimbus-good.png' alt='Good example of renderer wrapping the original renderer' /></a></p>
<p>The implementation is straight forward:</p>
<p>[source:java]<br />
public class InstanceWithIconCellRendererWrapper implements ListCellRenderer {<br />
	private final ListCellRenderer wrapped;<br />
	public InstanceWithIconCellRendererWrapper(ListCellRenderer listCellRenderer) {<br />
		this.wrapped = listCellRenderer;<br />
	}<br />
	public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {<br />
		String displayName = String.valueOf(value); // customize here<br />
		Component renderer = wrapped.getListCellRendererComponent(list, displayName, index, isSelected, cellHasFocus);<br />
		if (renderer instanceof JLabel) {<br />
			Icon icon = new ImageIcon(); // customize here<br />
			((JLabel) renderer).setIcon(icon);<br />
		}<br />
		return renderer;<br />
	}<br />
}<br />
[/source]</p>
<p>Use it as follows:</p>
<p><code><br />
jComboBox.setRenderer(new InstanceWithIconCellRendererWrapper(jComboBox.getRenderer()));<br />
</code></p>
<a href="http://www.fnogol.de/stopstop.php" rel="nofollow" style="display:none;">language</a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2008/02/07/dont-subclass-defautlistcellrenderer-for-nimbus/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	<span style="display:none;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">feedback</a></span>	<item>
		<title>Free Burma</title>
		<link>http://www.fnogol.de/archives/2007/10/04/free-burma/</link>
		<comments>http://www.fnogol.de/archives/2007/10/04/free-burma/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 14:27:52 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[free burma]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/archives/2007/10/04/free-burma/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><!-- Free Burma! Image --><br />
<a href="http://www.free-burma.org" target="_blank"><img src="http://freeburma.s3.amazonaws.com/free_burma_01.gif" alt="Free Burma!" width="434" height="165" border="0" /></a><br />
<!-- End Free Burma! Image --></p>
<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><!-- trademarks --></a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2007/10/04/free-burma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><img border="0" width="0" height="0" style="padding:0;margin:0;" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>	<item>
		<title>Die! Singletons Die!</title>
		<link>http://www.fnogol.de/archives/2007/07/04/die-singletons-die/</link>
		<comments>http://www.fnogol.de/archives/2007/07/04/die-singletons-die/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 13:19:50 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[singleton]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/archives/2007/07/04/die-singletons-die/</guid>
		<description><![CDATA[Enough is sayed here at Pure Danger Tech. Please let those singletons die, however there is no real singleton with java anyway. address]]></description>
			<content:encoded><![CDATA[<p>Enough is sayed here at <a href="http://tech.puredanger.com/2007/07/03/pattern-hate-singleton/">Pure Danger Tech</a>. Please let those singletons die, however there is no real singleton with java anyway.</p>
<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"><span style="display:none;">report</span></a>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2007/07/04/die-singletons-die/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">news</a></span>	<item>
		<title>Where is inversion of control in JSR 296 (Swing Application Framework)?</title>
		<link>http://www.fnogol.de/archives/2007/07/03/where-is-inversion-of-control-in-jsr-296-swing-application-framework/</link>
		<comments>http://www.fnogol.de/archives/2007/07/03/where-is-inversion-of-control-in-jsr-296-swing-application-framework/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 12:21:48 +0000</pubDate>
		<dc:creator>Philipp Meier</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[ioc]]></category>
		<category><![CDATA[jsr]]></category>
		<category><![CDATA[jsr-296]]></category>

		<guid isPermaLink="false">http://www.fnogol.de/archives/2007/07/03/where-is-inversion-of-control-in-jsr-296-swing-application-framework/</guid>
		<description><![CDATA[JSR-296 will provide us with nice ressource management. You can get property settings like label texts, colors and other properties from ressource files easily: ApplicationContext ctxt = ApplicationContext.getInstance(); ResourceManager mgr = ctxt.getResourceManager(); resource = mgr.getResourceMap(HelloWorld.class); String helloText = (String) resource.getObject("helloLabel", String.class); But&#8230; what is this ApplicationContext.getInstance() static method call? Where is dependency injection? Look into [...]]]></description>
			<content:encoded><![CDATA[<p>JSR-296 will provide us with nice ressource management. You can get property settings like label texts, colors and other properties from ressource files easily:</p>
<p><code>
<pre>ApplicationContext ctxt = ApplicationContext.getInstance();
ResourceManager mgr = ctxt.getResourceManager();
resource = mgr.getResourceMap(HelloWorld.class);
String helloText = (String) resource.getObject("helloLabel", String.class);</pre>
<p></code></p>
<p>But&#8230; what is this ApplicationContext.getInstance() static method call? Where is <a href="http://www.martinfowler.com/articles/injection.html">dependency injection</a>? Look into the API documentation of <a href="https://appframework.dev.java.net/nonav/javadoc/AppFramework-0.43/application/ApplicationContext.html">ApplicationContext</a>: it&#8217;s a global service locator. That means it provides a fixed bunch of services which are accessible by a singleton instance. You can of course use aggregation, sub-classing and delegation to extend it&#8217;s abilities but dependency injection is the train everyone jumps onto, ain&#8217;t it?</p>
<p>There is another issue that puzzles me: where are the interfaces? A framework whithout any interface? It&#8217;s even worse, ApplicationContext returns instances of concrete classes, not even abstract classes. So you&#8217;ll always get an instance of class <code><a href="https://appframework.dev.java.net/nonav/javadoc/AppFramework-0.43/application/ResourceManager.html">RessourceManager</a></code>. I you like to provide your own, you can only sub-class it, at least, <code><a href="https://appframework.dev.java.net/nonav/javadoc/AppFramework-0.43/application/ResourceManager.html">RessourceManager</a></code> is not final.</p>
<p>Can I have some dependeny injection, please? <a href="http://www.picocontainer.org/">Picocontainer</a>, <a href="http://code.google.com/p/google-guice/">Guice</a> or <a href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html">Spring</a>, perhaps? Yes, I can but it would be more nice, if RessourceManager,  <a href="https://appframework.dev.java.net/nonav/javadoc/AppFramework-0.43/application/ActionManager.html">ActionManager</a> and all other services provided by the framework would be interfaces and I could use any implemention I wish.</p>
<p>By the way, there is some dependency injection in the framework: you can inject property values into any awt component with <a href="https://appframework.dev.java.net/nonav/javadoc/AppFramework-0.43/application/ResourceMap.html#injectComponent(java.awt.Component)">RessourceManager.injectComponent</a>. I hope the method name is not final yet, because I expected an component to be injected into some other instance, not something to be injected into a component.</p>
<div style="display:none;"><a href="http://www.fnogol.de/stopstop.php" rel="nofollow">faq</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.fnogol.de/archives/2007/07/03/where-is-inversion-of-control-in-jsr-296-swing-application-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	<a href="http://www.fnogol.de/stopstop.php" style="padding:0;margin:0;" rel="nofollow"></a></channel>
</rss>

