[CVS jcontainer] Renamed org.jcontainer.loom -> org.codehaus.loom

mauro-yCVjj/[email protected] Mon, 19 Apr 2004 16:32:46 -0500
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>jcontainer/loom/demos</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt>distributed/server/src/conf/<a href="#file1">assembly.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr class="alt"><td><tt>distributed/server/<a href="#file2">project.properties</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties.diff?r1=1.6&amp;r2=1.7">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties?rev=1.7&amp;content-type=text/vnd.viewcvs-markup">1.7</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file3">project.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml?rev=1.16&amp;content-type=text/vnd.viewcvs-markup">1.16</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml.diff?r1=1.16&amp;r2=1.17">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a></td></tr>
<tr class="alt"><td><tt>helloworld/<a href="#file4">project.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml.diff?r1=1.25&amp;r2=1.26">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml?rev=1.26&amp;content-type=text/vnd.viewcvs-markup">1.26</a></td></tr>
<tr><td><tt>avalonlifecycle/src/conf/<a href="#file5">assembly.xml</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr class="alt"><td><tt>avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/<a href="#file6"><span id="removed">Lifecycle2Impl.java</span></a></tt></td><td></td><td align="right" id="removed">-194</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle2Impl.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a> removed</td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file7"><span id="removed">Lifecycle1Impl.java</span></a></tt></td><td></td><td align="right" id="removed">-187</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1Impl.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a> removed</td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file8"><span id="removed">AlternativeLifecycle1Impl.java</span></a></tt></td><td></td><td align="right" id="removed">-105</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/AlternativeLifecycle1Impl.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a> removed</td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file9"><span id="removed">Lifecycle1.java</span></a></tt></td><td></td><td align="right" id="removed">-96</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt>avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/<a href="#file10"><span id="added">Lifecycle2Impl.java</span></a></tt></td><td align="right" id="added">+194</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle2Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file11"><span id="added">Lifecycle1Impl.java</span></a></tt></td><td align="right" id="added">+187</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle1Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file12"><span id="added">AlternativeLifecycle1Impl.java</span></a></tt></td><td align="right" id="added">+105</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/AlternativeLifecycle1Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file13"><span id="added">Lifecycle1.java</span></a></tt></td><td align="right" id="added">+96</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle1.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>helloworld/src/java/org/codehaus/loom/demos/helloworld/<a href="#file14"><span id="added">HelloWorldServer.java</span></a></tt></td><td align="right" id="added">+98</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServer.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file15"><span id="added">HelloWorldServerImpl.java</span></a></tt></td><td align="right" id="added">+230</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServerImpl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file16"><span id="added">HelloWorldHandler.java</span></a></tt></td><td align="right" id="added">+197</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldHandler.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file17"><span id="added">HelloWorldServerMBean.java</span></a></tt></td><td align="right" id="added">+107</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServerMBean.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>distributed/<a href="#file18">project.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml?rev=1.14&amp;content-type=text/vnd.viewcvs-markup">1.14</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml.diff?r1=1.14&amp;r2=1.15">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml?rev=1.15&amp;content-type=text/vnd.viewcvs-markup">1.15</a></td></tr>
<tr><td><tt>distributed/client/src/java/org/jcontainer/loom/demos/distributed/client/<a href="#file19"><span id="removed">Client.java</span></a></tt></td><td></td><td align="right" id="removed">-119</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer/loom/demos/distributed/client/Client.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt>distributed/client/<a href="#file20">project.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml?rev=1.10&amp;content-type=text/vnd.viewcvs-markup">1.10</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml.diff?r1=1.10&amp;r2=1.11">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml?rev=1.11&amp;content-type=text/vnd.viewcvs-markup">1.11</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file21">project.properties</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties.diff?r1=1.1&amp;r2=1.2">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a></td></tr>
<tr class="alt"><td><tt>distributed/server/src/java/org/codehaus/loom/demos/distributed/api/<a href="#file22"><span id="added">Server.java</span></a></tt></td><td align="right" id="added">+97</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/api/Server.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>helloworld/src/java/org/jcontainer/loom/demos/helloworld/<a href="#file23"><span id="removed">HelloWorldServerMBean.java</span></a></tt></td><td></td><td align="right" id="removed">-107</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServerMBean.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file24"><span id="removed">HelloWorldServer.java</span></a></tt></td><td></td><td align="right" id="removed">-98</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServer.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file25"><span id="removed">HelloWorldHandler.java</span></a></tt></td><td></td><td align="right" id="removed">-197</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldHandler.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a> removed</td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file26"><span id="removed">HelloWorldServerImpl.java</span></a></tt></td><td></td><td align="right" id="removed">-230</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServerImpl.java?rev=1.9&amp;content-type=text/vnd.viewcvs-markup">1.9</a> removed</td></tr>
<tr><td><tt>distributed/server/src/java/org/codehaus/loom/demos/distributed/block/<a href="#file27"><span id="added">ServerImpl.java</span></a></tt></td><td align="right" id="added">+148</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/ServerImpl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file28"><span id="added">DefaultServer.java</span></a></tt></td><td align="right" id="added">+150</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/DefaultServer.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file29"><span id="added">SocketThread.java</span></a></tt></td><td align="right" id="added">+156</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/SocketThread.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>distributed/server/src/java/org/jcontainer/loom/demos/distributed/api/<a href="#file30"><span id="removed">Server.java</span></a></tt></td><td></td><td align="right" id="removed">-97</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/api/Server.java?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr><td><tt>distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/<a href="#file31"><span id="removed">SocketThread.java</span></a></tt></td><td></td><td align="right" id="removed">-156</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/SocketThread.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file32"><span id="removed">ServerImpl.java</span></a></tt></td><td></td><td align="right" id="removed">-147</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/ServerImpl.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file33"><span id="removed">DefaultServer.java</span></a></tt></td><td></td><td align="right" id="removed">-150</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/DefaultServer.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a> removed</td></tr>
<tr class="alt"><td><tt>helloworld/xdocs/<a href="#file34">index.xml</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
<tr><td><tt>helloworld/src/conf/<a href="#file35">assembly.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></td></tr>
<tr class="alt"><td><tt>avalonlifecycle/<a href="#file36">project.xml</a></tt></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml?rev=1.19&amp;content-type=text/vnd.viewcvs-markup">1.19</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml.diff?r1=1.19&amp;r2=1.20">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a></td></tr>
<tr><td><tt>distributed/client/src/java/org/codehaus/loom/demos/distributed/client/<a href="#file37"><span id="added">Client.java</span></a></tt></td><td align="right" id="added">+119</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus/loom/demos/distributed/client/Client.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td></td><td align="right" id="added">+1899</td><td align="right" id="removed">-1898</td><td></td></tr>
</table>
<small id="info">13 added + 13 removed + 11 modified, total 37 files</small><br />
<pre class="comment">
Renamed org.jcontainer.loom -&gt; org.codehaus.loom
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf">conf</a><br /></span>
<div class="fileheader"><big><b>assembly.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/conf/assembly.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- assembly.xml	3 Dec 2003 10:44:30 -0000	1.2
+++ assembly.xml	19 Apr 2004 21:32:35 -0000	1.3
@@ -2,7 +2,7 @@
</small></pre><pre class="diff" id="context"> 
 &lt;assembly&gt;
 
</pre><pre class="diff" id="removed">-    &lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.distributed.block.DefaultServer"
</pre><pre class="diff" id="added">+    &lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.distributed.block.DefaultServer"
</pre><pre class="diff" id="context">         name="distributed-server"&gt;
     &lt;/block&gt;
 
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a><br /></span>
<div class="fileheader"><big><b>project.properties</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties.diff?r1=1.6&amp;r2=1.7">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.properties?rev=1.7&amp;content-type=text/vnd.viewcvs-markup">1.7</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.6 -r1.7
--- project.properties	29 Nov 2003 07:24:50 -0000	1.6
+++ project.properties	19 Apr 2004 21:32:35 -0000	1.7
@@ -1,3 +1,3 @@
</small></pre><pre class="diff" id="context"> maven.repo.remote = http://ibiblio.org/maven/,http://dist.codehaus.org,http://spice.codehaus.org/maven/,http://spice.sf.net/maven/
</pre><pre class="diff" id="removed">-maven.jar.mainclass=org.<span id="removedchars">jcontainer</span>.loom.demos.distributed.block.ServerImpl
</pre><pre class="diff" id="added">+maven.jar.mainclass=org.<span id="addedchars">codehaus</span>.loom.demos.distributed.block.ServerImpl
</pre><pre class="diff" id="context"> 
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a><br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml?rev=1.16&amp;content-type=text/vnd.viewcvs-markup">1.16</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml.diff?r1=1.16&amp;r2=1.17">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/project.xml?rev=1.17&amp;content-type=text/vnd.viewcvs-markup">1.17</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.16 -r1.17
--- project.xml	25 Mar 2004 00:47:21 -0000	1.16
+++ project.xml	19 Apr 2004 21:32:35 -0000	1.17
@@ -3,7 +3,7 @@
</small></pre><pre class="diff" id="context">     &lt;extend&gt;${basedir}/../../../project.xml&lt;/extend&gt;
     &lt;name&gt;Loom Distributed Server&lt;/name&gt;
     &lt;id&gt;demo-distributed-server&lt;/id&gt;
</pre><pre class="diff" id="removed">-    &lt;package&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.distributed&lt;/package&gt;
</pre><pre class="diff" id="added">+    &lt;package&gt;org.<span id="addedchars">codehaus</span>.loom.demos.distributed&lt;/package&gt;
</pre><pre class="diff" id="context">     &lt;shortDescription&gt;Distributed Server Demo&lt;/shortDescription&gt;
     &lt;description&gt;
         Distribuited Server Demo app for deployment in Loom Application Server.
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml.diff?r1=1.25&amp;r2=1.26">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/project.xml?rev=1.26&amp;content-type=text/vnd.viewcvs-markup">1.26</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.25 -r1.26
--- project.xml	25 Mar 2004 19:48:41 -0000	1.25
+++ project.xml	19 Apr 2004 21:32:36 -0000	1.26
@@ -3,7 +3,7 @@
</small></pre><pre class="diff" id="context">     &lt;extend&gt;${basedir}/../../project.xml&lt;/extend&gt;
     &lt;name&gt;Loom HelloWorld Demo&lt;/name&gt;
     &lt;id&gt;demo-helloworld&lt;/id&gt;
</pre><pre class="diff" id="removed">-    &lt;package&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.helloworld&lt;/package&gt;
</pre><pre class="diff" id="added">+    &lt;package&gt;org.<span id="addedchars">codehaus</span>.loom.demos.helloworld&lt;/package&gt;
</pre><pre class="diff" id="context">     &lt;shortDescription&gt;HelloWorld Demo&lt;/shortDescription&gt;
     &lt;description&gt;
         HelloWorld Demo app for deployment in Loom Application Server.
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf">conf</a><br /></span>
<div class="fileheader"><big><b>assembly.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/conf/assembly.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- assembly.xml	3 Dec 2003 10:44:28 -0000	1.2
+++ assembly.xml	19 Apr 2004 21:32:36 -0000	1.3
@@ -7,16 +7,16 @@
</small></pre><pre class="diff" id="context">     &lt;!--
        This is an alternative to the other Lifecycle1 implementation
 
</pre><pre class="diff" id="removed">-    &lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.avalonlifecycle.AlternativeLifecycle1Impl"
</pre><pre class="diff" id="added">+    &lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.avalonlifecycle.AlternativeLifecycle1Impl"
</pre><pre class="diff" id="context">            name="lifecycle1" /&gt;
     --&gt;
 
</pre><pre class="diff" id="removed">-    &lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.avalonlifecycle.Lifecycle1Impl"
</pre><pre class="diff" id="added">+    &lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.avalonlifecycle.Lifecycle1Impl"
</pre><pre class="diff" id="context">         name="lifecycle1"/&gt;
 
</pre><pre class="diff" id="removed">-    &lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.avalonlifecycle.Lifecycle2Impl"
</pre><pre class="diff" id="added">+    &lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.avalonlifecycle.Lifecycle2Impl"
</pre><pre class="diff" id="context">         name="lifecycle2"&gt;
</pre><pre class="diff" id="removed">-        &lt;provide name="lifecycle1" role="org.<span id="removedchars">jcontainer</span>.loom.demos.avalonlifecycle.Lifecycle1"/&gt;
</pre><pre class="diff" id="added">+        &lt;provide name="lifecycle1" role="org.<span id="addedchars">codehaus</span>.loom.demos.avalonlifecycle.Lifecycle1"/&gt;
</pre><pre class="diff" id="context">     &lt;/block&gt;
 
 &lt;/assembly&gt;
</pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs
 .codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos">d!
emos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="removed"><big><b>Lifecycle2Impl.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle2Impl.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle2Impl.java
--- Lifecycle2Impl.java	3 Dec 2003 10:44:28 -0000	1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,194 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.avalonlifecycle;
-
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.activity.Startable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.context.Context;
-import org.apache.avalon.framework.context.ContextException;
-import org.apache.avalon.framework.context.Contextualizable;
-import org.apache.avalon.framework.logger.LogEnabled;
-import org.apache.avalon.framework.logger.Logger;
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-
-/**
- * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
- * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
- * .. and try stopt/starting the blocks.
- *
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @version 1.0
- * @dna.component
- */
-public class Lifecycle2Impl
-    implements LogEnabled, Startable, Initializable, Contextualizable,
-               Serviceable, Configurable, Disposable
-{
-    private Lifecycle1 m_lifecycle1;
-
-    public Lifecycle2Impl()
-    {
-        System.out.println( "Lifecycle2Impl.constructor() called. "
-                            + "(You should never do too much in here)" );
-        System.out.flush();
-    }
-
-    public void enableLogging( Logger logger )
-    {
-        System.out.println( "Lifecycle2Impl.enableLogging() called." );
-        System.out.flush();
-    }
-
-    public void contextualize( Context context )
-        throws ContextException
-    {
-        System.out.println(
-            "Lifecycle2Impl.contextualize() called (things like base directory passed in here)." );
-        System.out.flush();
-    }
-
-    /**
-     * @dna.dependency type="Lifecycle1"
-     */
-    public void service( ServiceManager serviceManager )
-        throws ServiceException
-    {
-        System.out.println( "Lifecycle2Impl.service() called "
-                            + "(lookup on other services possible now)." );
-        System.out.println(
-            "Lifecycle2Impl.service(), Lifecycle1 service looked up" );
-        m_lifecycle1 = (Lifecycle1)
-            serviceManager.lookup( Lifecycle1.class.getName() );
-    }
-
-    public void configure( Configuration configuration )
-        throws ConfigurationException
-    {
-        System.out.println(
-            "Lifecycle2Impl.configure() called (configuration from config.xml passed here)." );
-        System.out.flush();
-    }
-
-    public void initialize()
-        throws Exception
-    {
-        System.out.println( "Lifecycle2Impl.initialize() called." );
-        System.out.flush();
-        System.out.println(
-            "Lifecycle2Impl.initialize(), Lifecycle1.myServiceMethod() "
-            +
-            "method called result = " +
-            m_lifecycle1.myServiceMethod() );
-        System.out.flush();
-    }
-
-    public void start()
-        throws Exception
-    {
-        System.out.println( "Lifecycle2Impl.start() called." );
-        System.out.flush();
-    }
-
-    public void stop()
-        throws Exception
-    {
-        System.out.println( "Lifecycle2Impl.stop() called." );
-        System.out.flush();
-    }
-
-    public void dispose()
-    {
-        System.out.println( "Lifecycle2Impl.dispose() Called" );
-        System.out.flush();
-    }
-}
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs
 .codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos">d!
emos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="removed"><big><b>Lifecycle1Impl.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1Impl.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle1Impl.java
--- Lifecycle1Impl.java	3 Dec 2003 10:44:28 -0000	1.6
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,187 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.avalonlifecycle;
-
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.activity.Startable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.context.Context;
-import org.apache.avalon.framework.context.ContextException;
-import org.apache.avalon.framework.context.Contextualizable;
-import org.apache.avalon.framework.logger.LogEnabled;
-import org.apache.avalon.framework.logger.Logger;
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-
-/**
- * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
- * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
- * .. and try stopt/starting the blocks.
- *
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @dna.component
- * @dna.service type="org.jcontainer.loom.demos.avalonlifecycle.Lifecycle1"
- */
-public class Lifecycle1Impl
-    implements LogEnabled, Startable, Initializable, Contextualizable,
-               Serviceable, Configurable, Disposable, Lifecycle1
-{
-    public int myServiceMethod()
-    {
-        System.out.println( "Lifecycle1Impl.myServiceMethod() called." );
-        System.out.flush();
-        return 123;
-    }
-
-    public Lifecycle1Impl()
-    {
-        System.out.println( "Lifecycle1Impl.constructor() called. "
-                            + "(You should never do too much in here)" );
-        System.out.flush();
-    }
-
-    public void enableLogging( Logger logger )
-    {
-        System.out.println( "Lifecycle1Impl.enableLogging() called." );
-        System.out.flush();
-    }
-
-    public void contextualize( Context context )
-        throws ContextException
-    {
-        System.out.println(
-            "Lifecycle1Impl.contextualize() called (things like base directory passed in here)." );
-        System.out.flush();
-    }
-
-    public void service( ServiceManager serviceManager )
-        throws ServiceException
-    {
-        System.out.println(
-            "Lifecycle1Impl.service() called (lookup on other services possible now)." );
-        System.out.flush();
-    }
-
-    public void configure( Configuration configuration )
-        throws ConfigurationException
-    {
-        System.out.println(
-            "Lifecycle1Impl.configure() called (configuration from config.xml passed here)." );
-        System.out.flush();
-    }
-
-    public void initialize()
-        throws Exception
-    {
-        System.out.println( "Lifecycle1Impl.initialize() called." );
-        System.out.flush();
-    }
-
-    public void start()
-        throws Exception
-    {
-        System.out.println( "Lifecycle1Impl.start() called." );
-        System.out.flush();
-    }
-
-    public void stop()
-        throws Exception
-    {
-        System.out.println( "Lifecycle1Impl.stop() called." );
-        System.out.flush();
-    }
-
-    public void dispose()
-    {
-        System.out.println( "Lifecycle1Impl.dispose() Called" );
-        System.out.flush();
-    }
-}
</pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs
 .codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos">d!
emos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="removed"><big><b>AlternativeLifecycle1Impl.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/AlternativeLifecycle1Impl.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -N AlternativeLifecycle1Impl.java
--- AlternativeLifecycle1Impl.java	3 Dec 2003 10:44:28 -0000	1.6
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,105 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.avalonlifecycle;
-
-/**
- * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
- * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
- * .. and try stopt/starting the blocks.
- *
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @dna.component
- * @dna.service type="Lifecycle1"
- */
-public class AlternativeLifecycle1Impl
-    implements Lifecycle1
-{
-    public int myServiceMethod()
-    {
-        return 456;
-    }
-}
</pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs
 .codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos">d!
emos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="removed"><big><b>Lifecycle1.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle1.java
--- Lifecycle1.java	3 Dec 2003 10:44:28 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,96 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.avalonlifecycle;
-
-/**
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @version 1.0
- */
-public interface Lifecycle1
-{
-    int myServiceMethod();
-}
</pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehau
 s.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos">demos</a>/<!
a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="added"><big><b>Lifecycle2Impl.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle2Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle2Impl.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Lifecycle2Impl.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,194 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.avalonlifecycle;
+
+import org.apache.avalon.framework.activity.Disposable;
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.activity.Startable;
+import org.apache.avalon.framework.configuration.Configurable;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.context.Context;
+import org.apache.avalon.framework.context.ContextException;
+import org.apache.avalon.framework.context.Contextualizable;
+import org.apache.avalon.framework.logger.LogEnabled;
+import org.apache.avalon.framework.logger.Logger;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.avalon.framework.service.Serviceable;
+
+/**
+ * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
+ * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
+ * .. and try stopt/starting the blocks.
+ *
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @version 1.0
+ * @dna.component
+ */
+public class Lifecycle2Impl
+    implements LogEnabled, Startable, Initializable, Contextualizable,
+               Serviceable, Configurable, Disposable
+{
+    private Lifecycle1 m_lifecycle1;
+
+    public Lifecycle2Impl()
+    {
+        System.out.println( "Lifecycle2Impl.constructor() called. "
+                            + "(You should never do too much in here)" );
+        System.out.flush();
+    }
+
+    public void enableLogging( Logger logger )
+    {
+        System.out.println( "Lifecycle2Impl.enableLogging() called." );
+        System.out.flush();
+    }
+
+    public void contextualize( Context context )
+        throws ContextException
+    {
+        System.out.println(
+            "Lifecycle2Impl.contextualize() called (things like base directory passed in here)." );
+        System.out.flush();
+    }
+
+    /**
+     * @dna.dependency type="Lifecycle1"
+     */
+    public void service( ServiceManager serviceManager )
+        throws ServiceException
+    {
+        System.out.println( "Lifecycle2Impl.service() called "
+                            + "(lookup on other services possible now)." );
+        System.out.println(
+            "Lifecycle2Impl.service(), Lifecycle1 service looked up" );
+        m_lifecycle1 = (Lifecycle1)
+            serviceManager.lookup( Lifecycle1.class.getName() );
+    }
+
+    public void configure( Configuration configuration )
+        throws ConfigurationException
+    {
+        System.out.println(
+            "Lifecycle2Impl.configure() called (configuration from config.xml passed here)." );
+        System.out.flush();
+    }
+
+    public void initialize()
+        throws Exception
+    {
+        System.out.println( "Lifecycle2Impl.initialize() called." );
+        System.out.flush();
+        System.out.println(
+            "Lifecycle2Impl.initialize(), Lifecycle1.myServiceMethod() "
+            +
+            "method called result = " +
+            m_lifecycle1.myServiceMethod() );
+        System.out.flush();
+    }
+
+    public void start()
+        throws Exception
+    {
+        System.out.println( "Lifecycle2Impl.start() called." );
+        System.out.flush();
+    }
+
+    public void stop()
+        throws Exception
+    {
+        System.out.println( "Lifecycle2Impl.stop() called." );
+        System.out.flush();
+    }
+
+    public void dispose()
+    {
+        System.out.println( "Lifecycle2Impl.dispose() Called" );
+        System.out.flush();
+    }
+}
</pre></div>
<hr /><a name="file11" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehau
 s.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos">demos</a>/<!
a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="added"><big><b>Lifecycle1Impl.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle1Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle1Impl.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Lifecycle1Impl.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,187 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.avalonlifecycle;
+
+import org.apache.avalon.framework.activity.Disposable;
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.activity.Startable;
+import org.apache.avalon.framework.configuration.Configurable;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.context.Context;
+import org.apache.avalon.framework.context.ContextException;
+import org.apache.avalon.framework.context.Contextualizable;
+import org.apache.avalon.framework.logger.LogEnabled;
+import org.apache.avalon.framework.logger.Logger;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.avalon.framework.service.Serviceable;
+
+/**
+ * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
+ * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
+ * .. and try stopt/starting the blocks.
+ *
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @dna.component
+ * @dna.service type="org.codehaus.loom.demos.avalonlifecycle.Lifecycle1"
+ */
+public class Lifecycle1Impl
+    implements LogEnabled, Startable, Initializable, Contextualizable,
+               Serviceable, Configurable, Disposable, Lifecycle1
+{
+    public int myServiceMethod()
+    {
+        System.out.println( "Lifecycle1Impl.myServiceMethod() called." );
+        System.out.flush();
+        return 123;
+    }
+
+    public Lifecycle1Impl()
+    {
+        System.out.println( "Lifecycle1Impl.constructor() called. "
+                            + "(You should never do too much in here)" );
+        System.out.flush();
+    }
+
+    public void enableLogging( Logger logger )
+    {
+        System.out.println( "Lifecycle1Impl.enableLogging() called." );
+        System.out.flush();
+    }
+
+    public void contextualize( Context context )
+        throws ContextException
+    {
+        System.out.println(
+            "Lifecycle1Impl.contextualize() called (things like base directory passed in here)." );
+        System.out.flush();
+    }
+
+    public void service( ServiceManager serviceManager )
+        throws ServiceException
+    {
+        System.out.println(
+            "Lifecycle1Impl.service() called (lookup on other services possible now)." );
+        System.out.flush();
+    }
+
+    public void configure( Configuration configuration )
+        throws ConfigurationException
+    {
+        System.out.println(
+            "Lifecycle1Impl.configure() called (configuration from config.xml passed here)." );
+        System.out.flush();
+    }
+
+    public void initialize()
+        throws Exception
+    {
+        System.out.println( "Lifecycle1Impl.initialize() called." );
+        System.out.flush();
+    }
+
+    public void start()
+        throws Exception
+    {
+        System.out.println( "Lifecycle1Impl.start() called." );
+        System.out.flush();
+    }
+
+    public void stop()
+        throws Exception
+    {
+        System.out.println( "Lifecycle1Impl.stop() called." );
+        System.out.flush();
+    }
+
+    public void dispose()
+    {
+        System.out.println( "Lifecycle1Impl.dispose() Called" );
+        System.out.flush();
+    }
+}
</pre></div>
<hr /><a name="file12" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehau
 s.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos">demos</a>/<!
a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="added"><big><b>AlternativeLifecycle1Impl.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/AlternativeLifecycle1Impl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N AlternativeLifecycle1Impl.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ AlternativeLifecycle1Impl.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,105 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.avalonlifecycle;
+
+/**
+ * A demo of the lifecycle methods.  Mount the SAR fle contaning there blocks in
+ * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication
+ * .. and try stopt/starting the blocks.
+ *
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @dna.component
+ * @dna.service type="Lifecycle1"
+ */
+public class AlternativeLifecycle1Impl
+    implements Lifecycle1
+{
+    public int myServiceMethod()
+    {
+        return 456;
+    }
+}
</pre></div>
<hr /><a name="file13" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehau
 s.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos">demos</a>/<!
a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader" id="added"><big><b>Lifecycle1.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/src/java/org/codehaus/loom/demos/avalonlifecycle/Lifecycle1.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Lifecycle1.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Lifecycle1.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,96 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.avalonlifecycle;
+
+/**
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @version 1.0
+ */
+public interface Lifecycle1
+{
+    int myServiceMethod();
+}
</pre></div>
<hr /><a name="file14" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/hellowo
 rld/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/!
jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="added"><big><b>HelloWorldServer.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServer.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServer.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ HelloWorldServer.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,98 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.helloworld;
+
+/**
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @version 1.0
+ */
+public interface HelloWorldServer
+{
+    void setGreeting( String greeting );
+
+    String getGreeting();
+}
</pre></div>
<hr /><a name="file15" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/hellowo
 rld/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/!
jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="added"><big><b>HelloWorldServerImpl.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServerImpl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServerImpl.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ HelloWorldServerImpl.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,230 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.helloworld;
+
+import java.io.IOException;
+import java.net.InetAddress;
+import java.net.ServerSocket;
+import java.net.UnknownHostException;
+import org.apache.avalon.framework.activity.Disposable;
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.configuration.Configurable;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.context.Context;
+import org.apache.avalon.framework.context.Contextualizable;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.service.ServiceException;
+import org.apache.avalon.framework.service.ServiceManager;
+import org.apache.avalon.framework.service.Serviceable;
+import org.apache.avalon.phoenix.BlockContext;
+import org.codehaus.spice.netserve.connection.RequestHandler;
+import org.codehaus.spice.netserve.connection.SocketAcceptorManager;
+import org.codehaus.spice.netserve.sockets.ServerSocketFactory;
+
+/**
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @author Federico Barbieri &lt;[email protected]&gt;
+ * @version 1.0
+ * @dna.component
+ * @dna.service type="HelloWorldServer"
+ * @mx.interface topic="HelloWorldServer" name="org.codehaus.loom.demos.helloworld.HelloWorldServerMBean"
+ */
+public final class HelloWorldServerImpl
+    extends AbstractLogEnabled
+    implements HelloWorldServer, HelloWorldServerMBean, Contextualizable,
+               Serviceable, Configurable, Initializable, Disposable
+{
+    private ServerSocketFactory m_socketManager;
+    private SocketAcceptorManager m_socketAcceptorManager;
+    private BlockContext m_context;
+    private String m_greeting = "Hello World";
+    private InetAddress m_bindTo;
+    private int m_port;
+    private String m_connectionName = "HelloWorldListener";
+    private ServerSocket m_serverSocket;
+
+    public void setGreeting( final String greeting )
+    {
+        m_greeting = greeting;
+    }
+
+    public String getGreeting()
+    {
+        return m_greeting;
+    }
+
+    public void contextualize( final Context context )
+    {
+        m_context = (BlockContext)context;
+    }
+
+    public void configure( final Configuration configuration )
+        throws ConfigurationException
+    {
+        m_port = configuration.getChild( "port" ).getValueAsInteger( 8000 );
+
+        try
+        {
+            final String bindAddress = configuration.getChild( "bind" )
+                .getValue();
+            m_bindTo = InetAddress.getByName( bindAddress );
+        }
+        catch( final UnknownHostException unhe )
+        {
+            throw new ConfigurationException( "Malformed bind parameter",
+                                              unhe );
+        }
+    }
+
+    /**
+     * @dna.dependency type="ServerSocketFactory"
+     * @dna.dependency type="ConnectionManager"
+     */
+    public void service( final ServiceManager serviceManager )
+        throws ServiceException
+    {
+        getLogger().info( "HelloWorldServer.compose()" );
+
+        m_socketManager =
+        (ServerSocketFactory)serviceManager.lookup(
+            ServerSocketFactory.class.getName() );
+        m_socketAcceptorManager =
+        (SocketAcceptorManager)serviceManager.lookup(
+            SocketAcceptorManager.class.getName() );
+    }
+
+    public void initialize()
+        throws Exception
+    {
+        m_serverSocket =
+        m_socketManager.createServerSocket( m_port, 5, m_bindTo );
+
+        m_socketAcceptorManager.connect( m_connectionName,
+                                         m_serverSocket,
+                                         createHandler() );
+
+        // This is only to help newbies.....
+        System.out.println(
+            "HelloWorld server running with a greeting of '" +
+            m_greeting +
+            "'.  Point your browser to http://localhost:" +
+            m_port +
+            " to see its page" );
+    }
+
+    public void dispose()
+    {
+        try
+        {
+            m_socketAcceptorManager.disconnect( m_connectionName );
+        }
+        catch( final Exception e )
+        {
+            getLogger().warn( "Error while disconnecting.", e );
+        }
+
+        try
+        {
+            m_serverSocket.close();
+        }
+        catch( final IOException ioe )
+        {
+            getLogger().warn( "Error while closing server socket.", ioe );
+        }
+    }
+
+    public RequestHandler createHandler()
+        throws Exception
+    {
+        final HelloWorldHandler handler =
+            new HelloWorldHandler( m_greeting, m_context );
+        setupLogger( handler );
+        return handler;
+    }
+
+}
</pre></div>
<hr /><a name="file16" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/hellowo
 rld/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/!
jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="added"><big><b>HelloWorldHandler.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldHandler.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldHandler.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ HelloWorldHandler.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,197 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.helloworld;
+
+import java.io.IOException;
+import java.io.InterruptedIOException;
+import java.io.PrintWriter;
+import java.net.Socket;
+import java.net.SocketException;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.phoenix.BlockContext;
+import org.codehaus.spice.netserve.connection.RequestHandler;
+
+/**
+ * This handles an individual incoming request.  It outputs a greeting as html.
+ *
+ * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
+ * @author Federico Barbieri &lt;[email protected]&gt;
+ * @version 1.0
+ */
+final class HelloWorldHandler
+    extends AbstractLogEnabled
+    implements RequestHandler
+{
+    private static int c_counter;
+    private String m_greeting;
+    private BlockContext m_context;
+
+    HelloWorldHandler( final String greeting,
+                       final BlockContext context )
+    {
+        m_greeting = greeting;
+        m_context = context;
+    }
+
+    /**
+     * Handle a connection. This handler is responsible for processing
+     * connections as they occur.
+     *
+     * @param socket the connection
+     * @throws IOException if an error reading from socket occurs
+     */
+    public void handleConnection( final Socket socket )
+    {
+        final String remoteHost = socket.getInetAddress().getHostName();
+        final String remoteIP = socket.getInetAddress().getHostAddress();
+
+        try
+        {
+            final PrintWriter out = new PrintWriter( socket.getOutputStream(),
+                                                     true );
+            out.println( "&lt;html&gt;&lt;body&gt;&lt;b&gt;" +
+                         m_greeting +
+                         "!&lt;/b&gt;&lt;br&gt; Requests so far = " +
+                         ++c_counter + "&lt;br&gt;" );
+            out.println( "you are " + remoteHost + " at " + remoteIP + "&lt;br&gt;" );
+            out.println( "&lt;p&gt;The application will shutdown after 10 requests" );
+            out.println( "&lt;/body&gt;&lt;/html&gt;" );
+
+            socket.close();
+        }
+        catch( final SocketException se )
+        {
+            getLogger().debug(
+                "Socket to " + remoteHost + " closed remotely in HelloWorld",
+                se );
+        }
+        catch( final InterruptedIOException iioe )
+        {
+            getLogger().debug(
+                "Socket to " + remoteHost + " timeout in HelloWorld", iioe );
+        }
+        catch( final IOException ioe )
+        {
+            getLogger().debug(
+                "Exception in HelloWorld handling socket to " + remoteHost,
+                ioe );
+        }
+        catch( final Exception e )
+        {
+            getLogger().debug( "Exception in HelloWorld opening socket", e );
+        }
+        finally
+        {
+            try
+            {
+                socket.close();
+            }
+            catch( final IOException ioe )
+            {
+                getLogger().error( "Exception closing socket ", ioe );
+            }
+        }
+
+        getLogger().info(
+            "Connection from " + remoteHost + " (" + remoteIP + ")" );
+
+
+        // A test of shutting down a block &amp; app programatically.
+        if( c_counter &gt;= 10 )
+        {
+            System.out.println( "Testing Auto-Shutdown after 10 requests.." );
+            m_context.requestShutdown();
+        }
+    }
+
+    /**
+     * Shutdown the handler and any requests currently being handled.
+     */
+    public void shutdown( long timeout )
+    {
+    }
+}
</pre></div>
<hr /><a name="file17" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/hellowo
 rld/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/!
jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="added"><big><b>HelloWorldServerMBean.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/codehaus/loom/demos/helloworld/HelloWorldServerMBean.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServerMBean.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ HelloWorldServerMBean.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,107 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.helloworld;
+
+/**
+ * Specifies methods to export via Management interface.
+ *
+ * @author Huw Roberts &lt;huw-/[email protected]&gt;
+ * @mx.component name="Greeting"
+ */
+public interface HelloWorldServerMBean
+{
+    /**
+     * @mx.attribute description="The greeting that is returned to each HTTP
+     * request"
+     */
+    void setGreeting( final String greeting );
+
+    /**
+     * @mx.attribute
+     */
+    String getGreeting();
+}
</pre></div>
<hr /><a name="file18" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a><br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml?rev=1.14&amp;content-type=text/vnd.viewcvs-markup">1.14</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml.diff?r1=1.14&amp;r2=1.15">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/project.xml?rev=1.15&amp;content-type=text/vnd.viewcvs-markup">1.15</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.14 -r1.15
--- project.xml	1 Nov 2003 13:26:23 -0000	1.14
+++ project.xml	19 Apr 2004 21:32:36 -0000	1.15
@@ -3,7 +3,7 @@
</small></pre><pre class="diff" id="context">     &lt;extend&gt;${basedir}/../../project.xml&lt;/extend&gt;
     &lt;name&gt;Loom Distributed Demo&lt;/name&gt;
     &lt;id&gt;demo-distributed&lt;/id&gt;
</pre><pre class="diff" id="removed">-    &lt;package&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.distributed&lt;/package&gt;
</pre><pre class="diff" id="added">+    &lt;package&gt;org.<span id="addedchars">codehaus</span>.loom.demos.distributed&lt;/package&gt;
</pre><pre class="diff" id="context">     &lt;shortDescription&gt;Distributed Demo&lt;/shortDescription&gt;
     &lt;description&gt;
         Distribuited Demo app for deployment in Loom Application Server.
</pre></div>
<hr /><a name="file19" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client">client</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jconta
 iner/loom/demos/distributed/client/src/java/org/jcontainer/loom">loom</a>/<a href="http:/!
/xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer/loom/demos/distributed/client">client</a><br /></span>
<div class="fileheader" id="removed"><big><b>Client.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/jcontainer/loom/demos/distributed/client/Client.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N Client.java
--- Client.java	3 Dec 2003 10:44:29 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,119 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.distributed.client;
-
-import java.io.IOException;
-import java.io.ObjectOutputStream;
-import java.net.Socket;
-
-/**
- * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
- */
-public class Client
-{
-    public static void main( final String[] args )
-        throws IOException
-    {
-        if( args.length &lt; 3 )
-        {
-            System.out.println(
-                "Usage java -jar client.jar &lt;hostname&gt; &lt;port&gt; &lt;message&gt;" );
-            System.exit( 10 );
-        }
-
-        final String host = args[ 0 ];
-        final int port = Integer.parseInt( args[ 1 ] );
-        final String message = args[ 2 ];
-        final Socket socket = new Socket( host, port );
-        final ObjectOutputStream oos = new ObjectOutputStream(
-            socket.getOutputStream() );
-
-        oos.writeObject( message );
-        oos.close();
-        socket.close();
-    }
-}
</pre></div>
<hr /><a name="file20" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client">client</a><br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml?rev=1.10&amp;content-type=text/vnd.viewcvs-markup">1.10</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml.diff?r1=1.10&amp;r2=1.11">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.xml?rev=1.11&amp;content-type=text/vnd.viewcvs-markup">1.11</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.10 -r1.11
--- project.xml	3 Nov 2003 04:29:22 -0000	1.10
+++ project.xml	19 Apr 2004 21:32:36 -0000	1.11
@@ -3,7 +3,7 @@
</small></pre><pre class="diff" id="context">     &lt;extend&gt;${basedir}/../../../project.xml&lt;/extend&gt;
     &lt;name&gt;Loom Distributed Client Demo&lt;/name&gt;
     &lt;id&gt;demo-distributed-client&lt;/id&gt;
</pre><pre class="diff" id="removed">-    &lt;package&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.distributed.client&lt;/package&gt;
</pre><pre class="diff" id="added">+    &lt;package&gt;org.<span id="addedchars">codehaus</span>.loom.demos.distributed.client&lt;/package&gt;
</pre><pre class="diff" id="context">     &lt;shortDescription&gt;Distributed Client Demo&lt;/shortDescription&gt;
     &lt;description&gt;
         Distribuited Client Demo app for deployment in Loom Application Server.
</pre></div>
<hr /><a name="file21" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client">client</a><br /></span>
<div class="fileheader"><big><b>project.properties</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties.diff?r1=1.1&amp;r2=1.2">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/project.properties?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- project.properties	3 Aug 2003 12:24:17 -0000	1.1
+++ project.properties	19 Apr 2004 21:32:36 -0000	1.2
@@ -1 +1 @@
</small></pre><pre class="diff" id="removed">-maven.jar.mainclass=org.<span id="removedchars">jcontainer</span>.loom.demos.distributed.client.Client
</pre><pre class="diff" id="added">+maven.jar.mainclass=org.<span id="addedchars">codehaus</span>.loom.demos.distributed.client.Client
</pre></div>
<hr /><a name="file22" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
 oom/demos/distributed/server/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream!
.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/api">api</a><br /></span>
<div class="fileheader" id="added"><big><b>Server.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/api/Server.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Server.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Server.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,97 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.distributed.api;
+
+/**
+ * Interface Server
+ *
+ * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
+ */
+public interface Server
+{
+    void message( String string );
+}
</pre></div>
<hr /><a name="file23" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos
 /helloworld/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.cod!
ehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="removed"><big><b>HelloWorldServerMBean.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServerMBean.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServerMBean.java
--- HelloWorldServerMBean.java	3 Dec 2003 10:44:32 -0000	1.4
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,107 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.helloworld;
-
-/**
- * Specifies methods to export via Management interface.
- *
- * @author Huw Roberts &lt;huw-/[email protected]&gt;
- * @mx.component name="Greeting"
- */
-public interface HelloWorldServerMBean
-{
-    /**
-     * @mx.attribute description="The greeting that is returned to each HTTP
-     * request"
-     */
-    void setGreeting( final String greeting );
-
-    /**
-     * @mx.attribute
-     */
-    String getGreeting();
-}
</pre></div>
<hr /><a name="file24" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos
 /helloworld/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.cod!
ehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="removed"><big><b>HelloWorldServer.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServer.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServer.java
--- HelloWorldServer.java	3 Dec 2003 10:44:32 -0000	1.4
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,98 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.helloworld;
-
-/**
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @version 1.0
- */
-public interface HelloWorldServer
-{
-    void setGreeting( String greeting );
-
-    String getGreeting();
-}
</pre></div>
<hr /><a name="file25" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos
 /helloworld/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.cod!
ehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="removed"><big><b>HelloWorldHandler.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldHandler.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldHandler.java
--- HelloWorldHandler.java	15 Dec 2003 17:31:04 -0000	1.6
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,197 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.helloworld;
-
-import java.io.IOException;
-import java.io.InterruptedIOException;
-import java.io.PrintWriter;
-import java.net.Socket;
-import java.net.SocketException;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.avalon.phoenix.BlockContext;
-import org.codehaus.spice.netserve.connection.RequestHandler;
-
-/**
- * This handles an individual incoming request.  It outputs a greeting as html.
- *
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @author Federico Barbieri &lt;[email protected]&gt;
- * @version 1.0
- */
-final class HelloWorldHandler
-    extends AbstractLogEnabled
-    implements RequestHandler
-{
-    private static int c_counter;
-    private String m_greeting;
-    private BlockContext m_context;
-
-    HelloWorldHandler( final String greeting,
-                       final BlockContext context )
-    {
-        m_greeting = greeting;
-        m_context = context;
-    }
-
-    /**
-     * Handle a connection. This handler is responsible for processing
-     * connections as they occur.
-     *
-     * @param socket the connection
-     * @throws IOException if an error reading from socket occurs
-     */
-    public void handleConnection( final Socket socket )
-    {
-        final String remoteHost = socket.getInetAddress().getHostName();
-        final String remoteIP = socket.getInetAddress().getHostAddress();
-
-        try
-        {
-            final PrintWriter out = new PrintWriter( socket.getOutputStream(),
-                                                     true );
-            out.println( "&lt;html&gt;&lt;body&gt;&lt;b&gt;" +
-                         m_greeting +
-                         "!&lt;/b&gt;&lt;br&gt; Requests so far = " +
-                         ++c_counter + "&lt;br&gt;" );
-            out.println( "you are " + remoteHost + " at " + remoteIP + "&lt;br&gt;" );
-            out.println( "&lt;p&gt;The application will shutdown after 10 requests" );
-            out.println( "&lt;/body&gt;&lt;/html&gt;" );
-
-            socket.close();
-        }
-        catch( final SocketException se )
-        {
-            getLogger().debug(
-                "Socket to " + remoteHost + " closed remotely in HelloWorld",
-                se );
-        }
-        catch( final InterruptedIOException iioe )
-        {
-            getLogger().debug(
-                "Socket to " + remoteHost + " timeout in HelloWorld", iioe );
-        }
-        catch( final IOException ioe )
-        {
-            getLogger().debug(
-                "Exception in HelloWorld handling socket to " + remoteHost,
-                ioe );
-        }
-        catch( final Exception e )
-        {
-            getLogger().debug( "Exception in HelloWorld opening socket", e );
-        }
-        finally
-        {
-            try
-            {
-                socket.close();
-            }
-            catch( final IOException ioe )
-            {
-                getLogger().error( "Exception closing socket ", ioe );
-            }
-        }
-
-        getLogger().info(
-            "Connection from " + remoteHost + " (" + remoteIP + ")" );
-
-
-        // A test of shutting down a block &amp; app programatically.
-        if( c_counter &gt;= 10 )
-        {
-            System.out.println( "Testing Auto-Shutdown after 10 requests.." );
-            m_context.requestShutdown();
-        }
-    }
-
-    /**
-     * Shutdown the handler and any requests currently being handled.
-     */
-    public void shutdown( long timeout )
-    {
-    }
-}
</pre></div>
<hr /><a name="file26" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos
 /helloworld/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.cod!
ehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld">helloworld</a><br /></span>
<div class="fileheader" id="removed"><big><b>HelloWorldServerImpl.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/java/org/jcontainer/loom/demos/helloworld/HelloWorldServerImpl.java?rev=1.9&amp;content-type=text/vnd.viewcvs-markup">1.9</a></small></div>
<pre class="diff"><small id="info">diff -N HelloWorldServerImpl.java
--- HelloWorldServerImpl.java	15 Dec 2003 17:31:04 -0000	1.9
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,230 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.helloworld;
-
-import java.io.IOException;
-import java.net.InetAddress;
-import java.net.ServerSocket;
-import java.net.UnknownHostException;
-import org.apache.avalon.framework.activity.Disposable;
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.context.Context;
-import org.apache.avalon.framework.context.Contextualizable;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.apache.avalon.framework.service.ServiceException;
-import org.apache.avalon.framework.service.ServiceManager;
-import org.apache.avalon.framework.service.Serviceable;
-import org.apache.avalon.phoenix.BlockContext;
-import org.codehaus.spice.netserve.connection.RequestHandler;
-import org.codehaus.spice.netserve.connection.SocketAcceptorManager;
-import org.codehaus.spice.netserve.sockets.ServerSocketFactory;
-
-/**
- * @author Paul Hammant &lt;Paul_Hammant-/[email protected]&gt;
- * @author Federico Barbieri &lt;[email protected]&gt;
- * @version 1.0
- * @dna.component
- * @dna.service type="HelloWorldServer"
- * @mx.interface topic="HelloWorldServer" name="org.jcontainer.loom.demos.helloworld.HelloWorldServerMBean"
- */
-public final class HelloWorldServerImpl
-    extends AbstractLogEnabled
-    implements HelloWorldServer, HelloWorldServerMBean, Contextualizable,
-               Serviceable, Configurable, Initializable, Disposable
-{
-    private ServerSocketFactory m_socketManager;
-    private SocketAcceptorManager m_socketAcceptorManager;
-    private BlockContext m_context;
-    private String m_greeting = "Hello World";
-    private InetAddress m_bindTo;
-    private int m_port;
-    private String m_connectionName = "HelloWorldListener";
-    private ServerSocket m_serverSocket;
-
-    public void setGreeting( final String greeting )
-    {
-        m_greeting = greeting;
-    }
-
-    public String getGreeting()
-    {
-        return m_greeting;
-    }
-
-    public void contextualize( final Context context )
-    {
-        m_context = (BlockContext)context;
-    }
-
-    public void configure( final Configuration configuration )
-        throws ConfigurationException
-    {
-        m_port = configuration.getChild( "port" ).getValueAsInteger( 8000 );
-
-        try
-        {
-            final String bindAddress = configuration.getChild( "bind" )
-                .getValue();
-            m_bindTo = InetAddress.getByName( bindAddress );
-        }
-        catch( final UnknownHostException unhe )
-        {
-            throw new ConfigurationException( "Malformed bind parameter",
-                                              unhe );
-        }
-    }
-
-    /**
-     * @dna.dependency type="ServerSocketFactory"
-     * @dna.dependency type="ConnectionManager"
-     */
-    public void service( final ServiceManager serviceManager )
-        throws ServiceException
-    {
-        getLogger().info( "HelloWorldServer.compose()" );
-
-        m_socketManager =
-        (ServerSocketFactory)serviceManager.lookup(
-            ServerSocketFactory.class.getName() );
-        m_socketAcceptorManager =
-        (SocketAcceptorManager)serviceManager.lookup(
-            SocketAcceptorManager.class.getName() );
-    }
-
-    public void initialize()
-        throws Exception
-    {
-        m_serverSocket =
-        m_socketManager.createServerSocket( m_port, 5, m_bindTo );
-
-        m_socketAcceptorManager.connect( m_connectionName,
-                                         m_serverSocket,
-                                         createHandler() );
-
-        // This is only to help newbies.....
-        System.out.println(
-            "HelloWorld server running with a greeting of '" +
-            m_greeting +
-            "'.  Point your browser to http://localhost:" +
-            m_port +
-            " to see its page" );
-    }
-
-    public void dispose()
-    {
-        try
-        {
-            m_socketAcceptorManager.disconnect( m_connectionName );
-        }
-        catch( final Exception e )
-        {
-            getLogger().warn( "Error while disconnecting.", e );
-        }
-
-        try
-        {
-            m_serverSocket.close();
-        }
-        catch( final IOException ioe )
-        {
-            getLogger().warn( "Error while closing server socket.", ioe );
-        }
-    }
-
-    public RequestHandler createHandler()
-        throws Exception
-    {
-        final HelloWorldHandler handler =
-            new HelloWorldHandler( m_greeting, m_context );
-        setupLogger( handler );
-        return handler;
-    }
-
-}
</pre></div>
<hr /><a name="file27" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
 oom/demos/distributed/server/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream!
.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="added"><big><b>ServerImpl.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/ServerImpl.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N ServerImpl.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ServerImpl.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,148 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.distributed.block;
+
+import java.io.IOException;
+import java.io.ObjectInputStream;
+import java.net.ServerSocket;
+import java.net.Socket;
+
+import org.codehaus.loom.demos.distributed.api.Server;
+
+/**
+ * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
+ */
+public class ServerImpl
+    implements Server
+{
+    public void processSocket( final Socket socket )
+    {
+        try
+        {
+            final ObjectInputStream ois =
+                new ObjectInputStream( socket.getInputStream() );
+
+            String string = null;
+
+            try
+            {
+                string = (String)ois.readObject();
+            }
+            catch( final ClassNotFoundException cnfe )
+            {
+            }
+
+            message( string );
+            ois.close();
+            socket.close();
+        }
+        catch( final IOException ioe )
+        {
+            System.out.println( "Unexpected IO Exception" );
+        }
+    }
+
+    public void message( String string )
+    {
+        System.out.println( "Message string passed = " + string );
+    }
+
+    public static void main( final String[] args )
+        throws IOException
+    {
+        final ServerImpl svr = new ServerImpl();
+        final ServerSocket serverSocket = new ServerSocket( 7654 );
+
+        System.out.println( "Server listening on port " + 7654 );
+        System.out.println( "Ctrl-C to exit" );
+
+        while( true )
+        {
+            svr.processSocket( serverSocket.accept() );
+        }
+    }
+}
</pre></div>
<hr /><a name="file28" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
 oom/demos/distributed/server/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream!
.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="added"><big><b>DefaultServer.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/DefaultServer.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N DefaultServer.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ DefaultServer.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,150 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.distributed.block;
+
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.activity.Startable;
+import org.apache.avalon.framework.configuration.Configurable;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.codehaus.loom.demos.distributed.api.Server;
+
+/**
+ * DefaultServer is the block implementing the &lt;code&gt;Server&lt;/code&gt; server
+ * interface. It delegates implentation of interface to &lt;code&gt;ServerImpl&lt;/code&gt;
+ * class, which is placed in this package for simplicity but may also be
+ * implemented elsewhere.
+ *
+ * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
+ * @author Mauro Talevi
+ * @dna.component
+ * @dna.service type="Server"
+ */
+public class DefaultServer
+    extends AbstractLogEnabled
+    implements Server, Configurable, Startable, Initializable
+{
+    private int m_port;
+    private ServerImpl m_server;
+    private SocketThread m_socketThread;
+
+    public void configure( final Configuration configuration )
+        throws ConfigurationException
+    {
+        m_port = configuration.getChild( "port" ).getValueAsInteger( 7777 );
+    }
+
+    public void initialize()
+        throws Exception
+    {
+        m_server = new ServerImpl();
+    }
+
+    public void start()
+        throws Exception
+    {
+        m_socketThread = new SocketThread( m_server, m_port );
+        m_socketThread.start();
+
+        System.out.println( "Server started on port " + m_port );
+    }
+
+    public void stop()
+        throws Exception
+    {
+        m_socketThread.interrupt();
+        m_socketThread = null;
+
+        System.out.println( "Server stopped on port " + m_port );
+    }
+
+    public void message( final String string )
+    {
+        m_server.message( string );
+    }
+}
</pre></div>
<hr /><a name="file29" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
 oom/demos/distributed/server/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream!
.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="added"><big><b>SocketThread.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/codehaus/loom/demos/distributed/block/SocketThread.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N SocketThread.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ SocketThread.java	19 Apr 2004 21:32:36 -0000	1.1
@@ -0,0 +1,156 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.distributed.block;
+
+import java.io.IOException;
+import java.net.ServerSocket;
+import java.net.Socket;
+
+/**
+ * SocketThread accepts socket connections
+ *
+ * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
+ */
+public class SocketThread
+    extends Thread
+{
+    private ServerImpl m_ServerImpl;
+    private ServerSocket m_serverSocket;
+
+    protected SocketThread( final ServerImpl serverImpl,
+                            final int port )
+    {
+        m_ServerImpl = serverImpl;
+        try
+        {
+            m_serverSocket = new ServerSocket( port );
+        }
+        catch( final IOException ioe )
+        {
+            final String message = "Unable to open listening port. " +
+                "It is probably already being listened to.";
+            throw new RuntimeException( message );
+        }
+    }
+
+    public void run()
+    {
+
+        while( true )
+        {
+            try
+            {
+                final ConnectionThread ct =
+                    new ConnectionThread( m_serverSocket.accept() );
+                ct.start();
+            }
+            catch( final IOException ioe )
+            {
+                final String message =
+                    "Some problem with getting a socket for the connection.";
+                System.out.println( message );
+                ioe.printStackTrace();
+            }
+        }
+    }
+
+    class ConnectionThread
+        extends Thread
+    {
+        private Socket m_socket;
+
+        private ConnectionThread( final Socket socket )
+        {
+            m_socket = socket;
+        }
+
+        public void run()
+        {
+            m_ServerImpl.processSocket( m_socket );
+        }
+    }
+}
</pre></div>
<hr /><a name="file30" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jconta
 iner/loom/demos/distributed/server/src/java/org/jcontainer/loom">loom</a>/<a href="http:/!
/xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/api">api</a><br /></span>
<div class="fileheader" id="removed"><big><b>Server.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/api/Server.java?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N Server.java
--- Server.java	17 Aug 2003 18:26:23 -0000	1.2
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,97 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.distributed.api;
-
-/**
- * Interface Server
- *
- * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
- */
-public interface Server
-{
-    void message( String string );
-}
</pre></div>
<hr /><a name="file31" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jconta
 iner/loom/demos/distributed/server/src/java/org/jcontainer/loom">loom</a>/<a href="http:/!
/xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="removed"><big><b>SocketThread.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/SocketThread.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N SocketThread.java
--- SocketThread.java	3 Dec 2003 10:44:30 -0000	1.4
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,156 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.distributed.block;
-
-import java.io.IOException;
-import java.net.ServerSocket;
-import java.net.Socket;
-
-/**
- * SocketThread accepts socket connections
- *
- * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
- */
-public class SocketThread
-    extends Thread
-{
-    private ServerImpl m_ServerImpl;
-    private ServerSocket m_serverSocket;
-
-    protected SocketThread( final ServerImpl serverImpl,
-                            final int port )
-    {
-        m_ServerImpl = serverImpl;
-        try
-        {
-            m_serverSocket = new ServerSocket( port );
-        }
-        catch( final IOException ioe )
-        {
-            final String message = "Unable to open listening port. " +
-                "It is probably already being listened to.";
-            throw new RuntimeException( message );
-        }
-    }
-
-    public void run()
-    {
-
-        while( true )
-        {
-            try
-            {
-                final ConnectionThread ct =
-                    new ConnectionThread( m_serverSocket.accept() );
-                ct.start();
-            }
-            catch( final IOException ioe )
-            {
-                final String message =
-                    "Some problem with getting a socket for the connection.";
-                System.out.println( message );
-                ioe.printStackTrace();
-            }
-        }
-    }
-
-    class ConnectionThread
-        extends Thread
-    {
-        private Socket m_socket;
-
-        private ConnectionThread( final Socket socket )
-        {
-            m_socket = socket;
-        }
-
-        public void run()
-        {
-            m_ServerImpl.processSocket( m_socket );
-        }
-    }
-}
</pre></div>
<hr /><a name="file32" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jconta
 iner/loom/demos/distributed/server/src/java/org/jcontainer/loom">loom</a>/<a href="http:/!
/xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="removed"><big><b>ServerImpl.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/ServerImpl.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N ServerImpl.java
--- ServerImpl.java	3 Dec 2003 10:44:30 -0000	1.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,147 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.distributed.block;
-
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.net.ServerSocket;
-import java.net.Socket;
-import org.jcontainer.loom.demos.distributed.api.Server;
-
-/**
- * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
- */
-public class ServerImpl
-    implements Server
-{
-    public void processSocket( final Socket socket )
-    {
-        try
-        {
-            final ObjectInputStream ois =
-                new ObjectInputStream( socket.getInputStream() );
-
-            String string = null;
-
-            try
-            {
-                string = (String)ois.readObject();
-            }
-            catch( final ClassNotFoundException cnfe )
-            {
-            }
-
-            message( string );
-            ois.close();
-            socket.close();
-        }
-        catch( final IOException ioe )
-        {
-            System.out.println( "Unexpected IO Exception" );
-        }
-    }
-
-    public void message( String string )
-    {
-        System.out.println( "Message string passed = " + string );
-    }
-
-    public static void main( final String[] args )
-        throws IOException
-    {
-        final ServerImpl svr = new ServerImpl();
-        final ServerSocket serverSocket = new ServerSocket( 7654 );
-
-        System.out.println( "Server listening on port " + 7654 );
-        System.out.println( "Ctrl-C to exit" );
-
-        while( true )
-        {
-            svr.processSocket( serverSocket.accept() );
-        }
-    }
-}
</pre></div>
<hr /><a name="file33" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server">server</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jconta
 iner/loom/demos/distributed/server/src/java/org/jcontainer/loom">loom</a>/<a href="http:/!
/xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block">block</a><br /></span>
<div class="fileheader" id="removed"><big><b>DefaultServer.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/server/src/java/org/jcontainer/loom/demos/distributed/block/DefaultServer.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -N DefaultServer.java
--- DefaultServer.java	28 Feb 2004 19:46:52 -0000	1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,150 +0,0 @@
</small></pre><pre class="diff" id="removed">-/* ====================================================================
- * JContainer Software License, version 1.1
- *
- * Copyright (c) 2003, JContainer Group. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. Neither the name of the JContainer Group nor the name "Loom" nor
- *    the names of its contributors may be used to endorse or promote
- *    products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
- * ====================================================================
- *
- * JContainer Loom includes code from the Apache Software Foundation
- *
- * ====================================================================
- * The Apache Software License, Version 1.1
- *
- * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
- * reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. The end-user documentation included with the redistribution,
- *    if any, must include the following acknowledgment:
- *    "This product includes software developed by the
- *    Apache Software Foundation (http://www.apache.org/)."
- *    Alternately, this acknowledgment may appear in the software
- *    itself, if and wherever such third-party acknowledgments
- *    normally appear.
- *
- * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
- *    must not be used to endorse or promote products derived from this
- *    software without prior written permission. For written
- *    permission, please contact [email protected]
- *
- * 5. Products derived from this software may not be called "Apache",
- *    nor may "Apache" appear in their name, without prior written
- *    permission of the Apache Software Foundation.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-package org.jcontainer.loom.demos.distributed.block;
-
-import org.apache.avalon.framework.activity.Initializable;
-import org.apache.avalon.framework.activity.Startable;
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-import org.apache.avalon.framework.logger.AbstractLogEnabled;
-import org.jcontainer.loom.demos.distributed.api.Server;
-
-/**
- * DefaultServer is the block implementing the &lt;code&gt;Server&lt;/code&gt; server
- * interface. It delegates implentation of interface to &lt;code&gt;ServerImpl&lt;/code&gt;
- * class, which is placed in this package for simplicity but may also be
- * implemented elsewhere.
- *
- * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
- * @author Mauro Talevi
- * @dna.component
- * @dna.service type="Server"
- */
-public class DefaultServer
-    extends AbstractLogEnabled
-    implements Server, Configurable, Startable, Initializable
-{
-    private int m_port;
-    private ServerImpl m_server;
-    private SocketThread m_socketThread;
-
-    public void configure( final Configuration configuration )
-        throws ConfigurationException
-    {
-        m_port = configuration.getChild( "port" ).getValueAsInteger( 7777 );
-    }
-
-    public void initialize()
-        throws Exception
-    {
-        m_server = new ServerImpl();
-    }
-
-    public void start()
-        throws Exception
-    {
-        m_socketThread = new SocketThread( m_server, m_port );
-        m_socketThread.start();
-
-        System.out.println( "Server started on port " + m_port );
-    }
-
-    public void stop()
-        throws Exception
-    {
-        m_socketThread.interrupt();
-        m_socketThread = null;
-
-        System.out.println( "Server stopped on port " + m_port );
-    }
-
-    public void message( final String string )
-    {
-        m_server.message( string );
-    }
-}
</pre></div>
<hr /><a name="file34" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs">xdocs</a><br /></span>
<div class="fileheader"><big><b>index.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/xdocs/index.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- index.xml	3 Dec 2003 10:44:32 -0000	1.2
+++ index.xml	19 Apr 2004 21:32:44 -0000	1.3
@@ -25,7 +25,7 @@
</small></pre><pre class="diff" id="context"> 		all contained within the src directory &lt;/p&gt;
             &lt;ol&gt;
                 &lt;li&gt;
</pre><pre class="diff" id="removed">-                    &lt;code&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.helloworld&lt;/code&gt; This
</pre><pre class="diff" id="added">+                    &lt;code&gt;org.<span id="addedchars">codehaus</span>.loom.demos.helloworld&lt;/code&gt; This
</pre><pre class="diff" id="context"> 		package contains the Java source for 'Hello World' and the xinfo block
 		descriptor.
                 &lt;/li&gt;
</pre><pre class="diff"><small id="info">@@ -68,7 +68,7 @@
</small></pre><pre class="diff" id="context">                 &lt;/p&gt;
                 &lt;source&gt;
 (text snipped)
</pre><pre class="diff" id="removed">-                    &amp;lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.helloworld.HelloWorldServerImpl"
</pre><pre class="diff" id="added">+                    &amp;lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.helloworld.HelloWorldServerImpl"
</pre><pre class="diff" id="context">            name="helloworldserver" &amp;gt;
                     &amp;lt;provide name="socketsection"
                    role="org.apache.avalon.cornerstone.services.sockets.SocketManager"/&amp;gt;
</pre></div>
<hr /><a name="file35" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld">helloworld</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf">conf</a><br /></span>
<div class="fileheader"><big><b>assembly.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml.diff?r1=1.4&amp;r2=1.5">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/helloworld/src/conf/assembly.xml?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- assembly.xml	15 Dec 2003 17:31:08 -0000	1.4
+++ assembly.xml	19 Apr 2004 21:32:44 -0000	1.5
@@ -24,7 +24,7 @@
</small></pre><pre class="diff" id="context">     &lt;!--                                        --&gt;
     &lt;!-- Below this section are the demo blocks --&gt;
     &lt;!--                                        --&gt;
</pre><pre class="diff" id="removed">-    &lt;block class="org.<span id="removedchars">jcontainer</span>.loom.demos.helloworld.HelloWorldServerImpl"
</pre><pre class="diff" id="added">+    &lt;block class="org.<span id="addedchars">codehaus</span>.loom.demos.helloworld.HelloWorldServerImpl"
</pre><pre class="diff" id="context">         name="helloworldserver"&gt;
         &lt;provide name="sockets"
             role="org.codehaus.spice.netserve.sockets.ServerSocketFactory"/&gt;
</pre></div>
<hr /><a name="file36" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle">avalonlifecycle</a><br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml?rev=1.19&amp;content-type=text/vnd.viewcvs-markup">1.19</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml.diff?r1=1.19&amp;r2=1.20">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/avalonlifecycle/project.xml?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.19 -r1.20
--- project.xml	25 Mar 2004 00:47:21 -0000	1.19
+++ project.xml	19 Apr 2004 21:32:44 -0000	1.20
@@ -3,7 +3,7 @@
</small></pre><pre class="diff" id="context">     &lt;extend&gt;${basedir}/../../project.xml&lt;/extend&gt;
     &lt;name&gt;Loom Avalon Lifecycle Demo&lt;/name&gt;
     &lt;id&gt;demo-avalonlifecycle&lt;/id&gt;
</pre><pre class="diff" id="removed">-    &lt;package&gt;org.<span id="removedchars">jcontainer</span>.loom.demos.avalonlifecycle&lt;/package&gt;
</pre><pre class="diff" id="added">+    &lt;package&gt;org.<span id="addedchars">codehaus</span>.loom.demos.avalonlifecycle&lt;/package&gt;
</pre><pre class="diff" id="context">     &lt;shortDescription&gt;Avalon Lifecycle Demo&lt;/shortDescription&gt;
     &lt;description&gt;
         Avalon Lifecycle Demo app for deployment in Loom Application Server.
</pre></div>
<hr /><a name="file37" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client">client</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus">codehaus</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
 oom/demos/distributed/client/src/java/org/codehaus/loom">loom</a>/<a href="http://xstream!
.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus/loom/demos">demos</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus/loom/demos/distributed">distributed</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus/loom/demos/distributed/client">client</a><br /></span>
<div class="fileheader" id="added"><big><b>Client.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/demos/distributed/client/src/java/org/codehaus/loom/demos/distributed/client/Client.java?rev=1.1&amp;content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Client.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Client.java	19 Apr 2004 21:32:44 -0000	1.1
@@ -0,0 +1,119 @@
</small></pre><pre class="diff" id="added">+/* ====================================================================
+ * JContainer Software License, version 1.1
+ *
+ * Copyright (c) 2003, JContainer Group. All rights reserved.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. Neither the name of the JContainer Group nor the name "Loom" nor
+ *    the names of its contributors may be used to endorse or promote
+ *    products derived from this software without specific prior
+ *    written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * ====================================================================
+ *
+ * JContainer Loom includes code from the Apache Software Foundation
+ *
+ * ====================================================================
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1997-2003 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *    "This product includes software developed by the
+ *    Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software
+ *    itself, if and wherever such third-party acknowledgments
+ *    normally appear.
+ *
+ * 4. The names "Jakarta", "Avalon", and "Apache Software Foundation"
+ *    must not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact [email protected]
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+package org.codehaus.loom.demos.distributed.client;
+
+import java.io.IOException;
+import java.io.ObjectOutputStream;
+import java.net.Socket;
+
+/**
+ * @author &lt;a href="mailto:Paul_Hammant-/[email protected]"&gt;Paul Hammant&lt;/a&gt;
+ */
+public class Client
+{
+    public static void main( final String[] args )
+        throws IOException
+    {
+        if( args.length &lt; 3 )
+        {
+            System.out.println(
+                "Usage java -jar client.jar &lt;hostname&gt; &lt;port&gt; &lt;message&gt;" );
+            System.exit( 10 );
+        }
+
+        final String host = args[ 0 ];
+        final int port = Integer.parseInt( args[ 1 ] );
+        final String message = args[ 2 ];
+        final Socket socket = new Socket( host, port );
+        final ObjectOutputStream oos = new ObjectOutputStream(
+            socket.getOutputStream() );
+
+        oos.writeObject( message );
+        oos.close();
+        socket.close();
+    }
+}
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.8</small></center>
</body></html>