<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Kommentare zu: Contribution Methods: Naming Conventions vs Annotations</title>
	<atom:link href="http://blog.tapestry5.de/index.php/2010/03/05/contribution-methods-naming-conventions-vs-annotations/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tapestry5.de/index.php/2010/03/05/contribution-methods-naming-conventions-vs-annotations/</link>
	<description>Thoughts on coding, technology and occasional stuff.</description>
	<lastBuildDate>Wed, 01 Sep 2010 11:06:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Von: Igor Drobiazko</title>
		<link>http://blog.tapestry5.de/index.php/2010/03/05/contribution-methods-naming-conventions-vs-annotations/comment-page-1/#comment-120</link>
		<dc:creator>Igor Drobiazko</dc:creator>
		<pubDate>Fri, 05 Mar 2010 17:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tapestry5.de/?p=860#comment-120</guid>
		<description>Hello Renat,

nice to see you here.

The main difference is that in OSGi a configuration of a bundle or a service can be updated at runtime. You can use the &lt;a href=&quot;http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/ConfigurationAdmin.html&quot; rel=&quot;nofollow&quot;&gt;ConfigurationAdmin&lt;/a&gt; service to add or update configurations. 

In contrast a configuration of a Tapestry service is passed to the service at creation time. This means for singleton services that the configuration is created only once, for per-request services every time a new instance is created. The configuration is created by calling the contribution methods. There is no way to change the configuration after the service has been created.

A further difference is the configuration object. In OSGi a &lt;a href=&quot;http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/Configuration.html&quot; rel=&quot;nofollow&quot;&gt;Configuration&lt;/a&gt; consists of a dictionary. The values types of the dictionary are limited to single values or arrays of String, Integer, Long, Float, Double, Byte, Short, Character, Boolean. In Tapestry a service configuration can also consist of further services available in the service registry.</description>
		<content:encoded><![CDATA[<p>Hello Renat,</p>
<p>nice to see you here.</p>
<p>The main difference is that in OSGi a configuration of a bundle or a service can be updated at runtime. You can use the <a href="http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/ConfigurationAdmin.html" rel="nofollow">ConfigurationAdmin</a> service to add or update configurations. </p>
<p>In contrast a configuration of a Tapestry service is passed to the service at creation time. This means for singleton services that the configuration is created only once, for per-request services every time a new instance is created. The configuration is created by calling the contribution methods. There is no way to change the configuration after the service has been created.</p>
<p>A further difference is the configuration object. In OSGi a <a href="http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/Configuration.html" rel="nofollow">Configuration</a> consists of a dictionary. The values types of the dictionary are limited to single values or arrays of String, Integer, Long, Float, Double, Byte, Short, Character, Boolean. In Tapestry a service configuration can also consist of further services available in the service registry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Renat Zubairov</title>
		<link>http://blog.tapestry5.de/index.php/2010/03/05/contribution-methods-naming-conventions-vs-annotations/comment-page-1/#comment-119</link>
		<dc:creator>Renat Zubairov</dc:creator>
		<pubDate>Fri, 05 Mar 2010 15:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tapestry5.de/?p=860#comment-119</guid>
		<description>Nice. Could you also compare it with for example dynamic configuration service of OSGi?</description>
		<content:encoded><![CDATA[<p>Nice. Could you also compare it with for example dynamic configuration service of OSGi?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
