<?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>Radek's Tech Blog &#187; plugin</title>
	<atom:link href="http://urbas.tk/index.php/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://urbas.tk</link>
	<description>Radoslaw H. Urbas homepage / blog</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:31:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Eclipse (anti)patterns (1).</title>
		<link>http://urbas.tk/index.php/2008/06/28/eclipse-antipatterns-1/</link>
		<comments>http://urbas.tk/index.php/2008/06/28/eclipse-antipatterns-1/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 07:59:23 +0000</pubDate>
		<dc:creator>Radoslaw Urbas</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[antipattern]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=32</guid>
		<description><![CDATA[Activator is a class in a Eclipse plugin which controls the plug-in life cycle. It contains methods like start(BundleContext context), stop(BundleContext context) and a static method Activator getDefault() &#8211; which returns static field plugin. What is interesting the the static field plugin is set in the non-static public method start(BundleContext context) or in a public [...]]]></description>
			<content:encoded><![CDATA[<p>Activator is a class in a Eclipse plugin which controls the plug-in life cycle. It contains methods like <code>start(BundleContext context)</code>, <code>stop(BundleContext context)</code> and a static method <code>Activator getDefault()</code> &#8211; which returns static field <code>plugin</code>. What is interesting the the static field <code>plugin</code> is set in the non-static public method <code>start(BundleContext context)</code> or in a public constructor.<br />
Such code is generated by Eclipse wizard for creating new plug-in. And this is Eclipse pattern for accessing the <em>shared instance</em>&#8230;</p>
<p>Actually there are more places where this pattern is used in Eclipse framework and very often it is the only way for obtaining a reference to particular object. Let me discuss those later.</p>
]]></content:encoded>
			<wfw:commentRss>http://urbas.tk/index.php/2008/06/28/eclipse-antipatterns-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

