<?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>Benjamin Cabé &#187; bundle</title>
	<atom:link href="http://blog.benjamin-cabe.com/tag/bundle/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.benjamin-cabe.com</link>
	<description>Eclipse, the birds and yo momma</description>
	<lastBuildDate>Wed, 17 Mar 2010 09:21:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Given a class, how to retrieve its bundle?</title>
		<link>http://blog.benjamin-cabe.com/2009/07/16/given-a-class-how-to-retrieve-its-bundle</link>
		<comments>http://blog.benjamin-cabe.com/2009/07/16/given-a-class-how-to-retrieve-its-bundle#comments</comments>
		<pubDate>Thu, 16 Jul 2009 15:34:13 +0000</pubDate>
		<dc:creator>Benjamin Cabé</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[equinox]]></category>
		<category><![CDATA[osgi]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.benjamin-cabe.com/2009/05/13/osgi-retrouver-le-bundle-auquel-appartient-une-classe</guid>
		<description><![CDATA[OSGI R4.2 (thus Equinox 3.5) comes (well, will come, since the spec. is not final yet) with a new simple and handy utility: the org.osgi.framework.FrameworkUtil.getBundle(Class) static method, which allows to retrieve the bundle a given class belongs to. More specifically, this method will give you the bundle who loaded the given class, or null if the class has [...]]]></description>
			<content:encoded><![CDATA[<p><strong>OSGI R4.2</strong> (thus <strong>Equinox 3.5</strong>) comes (well, will come, since the spec. is not final yet) with a new simple and handy utility: the <span style="font-family: courier new,courier;">org.osgi.framework.FrameworkUtil.getBundle(Class)</span> static method, which allows <strong>to retrieve the bundle a given class belongs to</strong>.</p>
<p>More specifically, this method will give you the bundle who loaded the given class, or <span style="font-family: courier new,courier;">null</span> if the class has not been loaded by the OSGi framework (e.g. if it is a class belonging to the boot classpath&#8230;).</p>
<p>Thus, whenever you want to access information such as the version of a bundle, its headers,  etc. without having to query its <span style="font-family: courier new,courier;">Activator </span>(perhaps you don&#8217;t even have an Activator for this bundle&#8230;), you know what you&#8217;ve got to use! Of course, whoever says <span style="font-family: courier new,courier;">Bundle</span>, means <span style="font-family: courier new,courier;">BundleContext</span>, and this handy helper is also very convenient to easily publish/consume OSGi services on behalf of the bundle&#8230;  <img src='http://blog.benjamin-cabe.com/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.benjamin-cabe.com/2009/07/16/given-a-class-how-to-retrieve-its-bundle/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Fiche de référence OSGi</title>
		<link>http://blog.benjamin-cabe.com/2009/01/13/fiche-de-reference-osgi</link>
		<comments>http://blog.benjamin-cabe.com/2009/01/13/fiche-de-reference-osgi#comments</comments>
		<pubDate>Tue, 13 Jan 2009 10:10:08 +0000</pubDate>
		<dc:creator>Benjamin Cabé</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[equinox]]></category>
		<category><![CDATA[jeff mcaffer]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[osgi]]></category>
		<category><![CDATA[pde]]></category>

		<guid isPermaLink="false">http://blog.benjamin-cabe.com/?p=405</guid>
		<description><![CDATA[En guise d&#8217;avant-goût au livre &#8221;Equinox and OSGi: The Power Behind Eclipse&#8220;, une fiche de référence sur OSGi et son implémentation de référence Equinox a été concoctée par Jeff McAffer et mise à disposition sur le site DZone. Attention, il faut un compte pour pouvoir télécharger le PDF —et je n&#8217;ai pas le droit de le [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:right; margin-left:1em;" title="Equinox &amp; OSGi" src="http://blog.benjamin-cabe.com/wp-content/uploads/2009/01/equi-150x150.jpg" alt="Equinox &amp; OSGi" width="150" height="150" />En guise d&#8217;avant-goût au livre &#8221;<a title="Equinox &amp; OSGi, le livre" href="http://www.amazon.com/Equinox-OSGi-Power-Behind-Eclipse/dp/0321585712" target="_blank">Equinox and OSGi: The Power Behind Eclipse</a>&#8220;, une fiche de référence sur OSGi et son implémentation de référence Equinox a été concoctée par <a title="Blog de Jeff McAffer" href="http://eclipsesource.com/blogs/author/jeff/" target="_blank">Jeff McAffer</a> et mise à disposition sur le site <a title="DZone" href="http://www.dzone.com/" target="_blank">DZone</a>.</p>
<p><strong><em>Attention</em></strong><em>, il faut un compte pour pouvoir télécharger le PDF —et je n&#8217;ai pas le droit de le mettre à disposition ici <img src='http://blog.benjamin-cabe.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  .</em></p>
<p>En 6 pages, Jeff fait le tour de tous les concepts de base d&#8217;OSGi/Equinox, et répond à des questions que tout développeur de bundles OSGi (et plus généralement de plug-ins Eclipse) s&#8217;est un jour posé :</p>
<ul>
<li>Faut-il préférer l&#8217;en-tête <span style="font-family: 'courier new', courier;">Import-Package</span> à <span style="font-family: 'courier new', courier;">Require-Bundle</span> pour la gestion des dépendances?</li>
<li>Quelle sont les différences entre les <em>services </em>OSGi, les <em>declarative services</em> et les <em>extensions</em> Eclipse? </li>
<li>Comment manipuler ses bundles depuis la console OSGi?</li>
<li>etc. <img src='http://blog.benjamin-cabe.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
</ul>
<p><strong><span style="text-decoration: underline;">A lire absolument!</span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.benjamin-cabe.com/2009/01/13/fiche-de-reference-osgi/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
