<?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>Comments on: Java 7 Roundup (Mar 13th)</title>
	<atom:link href="http://tech.puredanger.com/index.php/2007/03/14/java-roundup-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2007/03/14/java-roundup-6/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:39:50 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2007/03/14/java-roundup-6/comment-page-1/#comment-1032</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 14 Mar 2007 16:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/03/14/java-roundup-6/#comment-1032</guid>
		<description>Hi Neil,  you&#039;re right, I was being lazy.  I had actually written a longer more detailed version of this, but lost it somehow in the browser and I was too tired to fully  rewrite.

What I was trying to say was, I would like some way to declare (in my source) the existence of modules.  I want those constraints enforced (with respect to package visibility) at compile-time and run-time by javac and java without the need for a separate OSGi runtime.  This (may) be completely independent of how I actually package my app.  I think this might map into what JSR 294 is addressing, although I&#039;m not totally clear on the boundaries between 277 and 294. 

The other item, which may not be feasible, is the ability to look up (dynamically) all implementors of an interface.  This is critical for any kind of dynamic plugin architecture and is something that you can get in OSGi through extension points.  It&#039;s obviously complicated in Java by the fact that classes are loaded as needed, so it may be impossible to answer this question without actually scanning the entire classpath or doing something that would have performance or logistical problems.  

Those are the two issues that I&#039;ve hit repeatedly and looked to something like OSGi to solve.  I think the first one can and should be handled as part of the platform, regardless of packaging.  It&#039;s possible that Java modules would allow me to handle the second as well, but I haven&#039;t seen enough to know yet.    

I apologize for the word &quot;junk&quot; which is not really fair (I didn&#039;t mean it pejoratively) which I was using as a shorthand for &quot;stuff above the Java platform&quot;.  And I was also thinking of the meta files that come out of using Eclipse projects, more than OSGi. 

Thanks for keeping me honest.... :)</description>
		<content:encoded><![CDATA[<p>Hi Neil,  you&#8217;re right, I was being lazy.  I had actually written a longer more detailed version of this, but lost it somehow in the browser and I was too tired to fully  rewrite.</p>
<p>What I was trying to say was, I would like some way to declare (in my source) the existence of modules.  I want those constraints enforced (with respect to package visibility) at compile-time and run-time by javac and java without the need for a separate OSGi runtime.  This (may) be completely independent of how I actually package my app.  I think this might map into what JSR 294 is addressing, although I&#8217;m not totally clear on the boundaries between 277 and 294. </p>
<p>The other item, which may not be feasible, is the ability to look up (dynamically) all implementors of an interface.  This is critical for any kind of dynamic plugin architecture and is something that you can get in OSGi through extension points.  It&#8217;s obviously complicated in Java by the fact that classes are loaded as needed, so it may be impossible to answer this question without actually scanning the entire classpath or doing something that would have performance or logistical problems.  </p>
<p>Those are the two issues that I&#8217;ve hit repeatedly and looked to something like OSGi to solve.  I think the first one can and should be handled as part of the platform, regardless of packaging.  It&#8217;s possible that Java modules would allow me to handle the second as well, but I haven&#8217;t seen enough to know yet.    </p>
<p>I apologize for the word &#8220;junk&#8221; which is not really fair (I didn&#8217;t mean it pejoratively) which I was using as a shorthand for &#8220;stuff above the Java platform&#8221;.  And I was also thinking of the meta files that come out of using Eclipse projects, more than OSGi. </p>
<p>Thanks for keeping me honest&#8230;. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Bartlett</title>
		<link>http://tech.puredanger.com/2007/03/14/java-roundup-6/comment-page-1/#comment-1031</link>
		<dc:creator>Neil Bartlett</dc:creator>
		<pubDate>Wed, 14 Mar 2007 15:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/03/14/java-roundup-6/#comment-1031</guid>
		<description>Hi, could you clarify what this means: &quot;simpler than needing bundles, manifests, and all the rest of the junk that goes along with OSGi&quot;

&quot;Bundle&quot; is the OSGi terminology for a module, and you can hardly have a module system without modules.

Manifests you have already any time you create a Jar. OSGi adds a few lines of metadata, such as the module name and the dependencies. Again, you can&#039;t have a module without metadata.

And the other junk... what other junk? That&#039;s all there is!</description>
		<content:encoded><![CDATA[<p>Hi, could you clarify what this means: &#8220;simpler than needing bundles, manifests, and all the rest of the junk that goes along with OSGi&#8221;</p>
<p>&#8220;Bundle&#8221; is the OSGi terminology for a module, and you can hardly have a module system without modules.</p>
<p>Manifests you have already any time you create a Jar. OSGi adds a few lines of metadata, such as the module name and the dependencies. Again, you can&#8217;t have a module without metadata.</p>
<p>And the other junk&#8230; what other junk? That&#8217;s all there is!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

