[CVS site] links and words

Paul Hammant <paul-yCVjj/[email protected]> Tue, 10 Feb 2004 01:54:42 -0600
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <[email protected]>
Commit in site/docs on MAIN

index.html +20 -9 1.2 -> 1.3

source-repositories.html +6 -6 1.1 -> 1.2

+26 -15

2 modified files

links and words

----------

site /docs

index.html 1.2 -> 1.3

diff -u -r1.2 -r1.3
--- index.html 18 Dec 2003 10:01:30 -0000 1.2
+++ index.html 10 Feb 2004 07:54:42 -0000 1.3
@@ -5,17 +5,28 @@

</head>
<body>
<h2>Introduction</h2>

+NanoContainer is&nbsp; is a script enabled front end for <a
+ href="http://www.picocontainer.org">PicoContainer</a>. Tree of
+components can be composing using :<br>
+<ol>
+ <li>A General scripting language like Jython, Javascript (Rhino),
+Beanshell, Groovy and even XML (our syntax).</li>
+ <li>Via reflection in do-it-yourself component by component way </li>
+ <li>To an open builder API for bespoke script design (we have a
+Servlet sub-project that uses this)</li>
+</ol>

<br>

-NanoContainer is&nbsp;&nbsp; <br>
-<h2>Sister projects</h2>
-<h4>PicoContainer</h4>
-PicooContainer is <br>
-<h4>PicoExtras</h4>
-Many supplamental projects that add reflection and xml capability to
-PicoContainer.<br>
-<h4><br>
-</h4>

+Note - We're deliberately trying to be language agnostic here.<br>

<br>

+<h2>General Script Examples</h2>
+<h3>Groovy</h3>
+<pre>class MyContainerBuilder {<br>&nbsp; buildContainer(parent, assemblyScope) {<br>&nbsp; &nbsp;&nbsp; pico = new org.picocontainer.defaults.DefaultPicoContainer(parent)<br>&nbsp;&nbsp;&nbsp;&nbsp; pico.registerComponentImplementation(org.nanocontainer.testmodel.DefaultWebServerConfig)<br>&nbsp;&nbsp;&nbsp;&nbsp; pico.registerComponentImplementation(org.nanocontainer.testmodel.WebServerImpl)<br>&nbsp;&nbsp;&nbsp;&nbsp; return pico<br>&nbsp; }<br>}</pre>
+<h3>Jython</h3>
+<pre>from org.nanocontainer.testmodel import *<br>pico = DefaultPicoContainer()<br>pico.registerComponentImplementation(WebServerImpl)<br>pico.registerComponentImplementation(DefaultWebServerConfig)</pre>
+<h3>Rhino</h3>
+<pre>var pico = new DefaultPicoContainer(new ImplementationHidingComponentAdapterFactory())<br>pico.registerComponentImplementation(Packages.org.nanocontainer.testmodel.DefaultWebServerConfig)<br>pico.registerComponentImplementation(Packages.org.nanocontainer.testmodel.WebServerImpl)</pre>
+<h3>XML</h3>
+<pre>&lt;container&gt;<br>&nbsp;&nbsp;&nbsp; &lt;component class='org.nanocontainer.testmodel.DefaultWebServerConfig'/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;component key='org.nanocontainer.testmodel.WebServer' class='org.nanocontainer.testmodel.WebServerImpl'/&gt;<br>&lt;/container&gt;</pre>

<br>
<small>Authors: Paul Hammant</small><br>
</body>

----------

site /docs

source-repositories.html 1.1 -> 1.2

diff -u -r1.1 -r1.2
--- source-repositories.html 17 Dec 2003 22:03:23 -0000 1.1
+++ source-repositories.html 10 Feb 2004 07:54:42 -0000 1.2
@@ -9,19 +9,19 @@

<div class="app">
<div class="h3">
<h3><a name="Web Access">Web Access</a> </h3>

-<p><a href="http://cvs.nanocontainer.codehaus.org/nano">http://cvs.nanocontainer.codehaus.org/</a><br>
-<a href="http://cvs.nanocontainer.codehaus.org/nano"></a></p>

+<p><a href="http://cvs.picocontainer.codehaus.org/">http://cvs.picocontainer.codehaus.org/</a><br>
+</p>

</div>
<div class="h3">
<h3><a name="Anonymous CVS Access">Anonymous CVS Access</a> </h3>
<p>This project's CVS repository can be checked out through anonymous
(pserver) CVS with the following instruction set. When prompted for a
password for anonymous, simply press the Enter key. </p>

-<p>cvs -d :pserver:[email protected]:/cvsroot/nanocontainer

+<p>cvs -d :pserver:[email protected]:/cvsroot/picocontainer

login <br>
<br>

-cvs -z3 -d :pserver:[email protected]:/cvsroot/nanocontainer
-co nano<br>

+cvs -z3 -d :pserver:[email protected]:/cvsroot/picocontainer
+co java<br>

</p>
<p>Updates from within the module's directory do not need the -d
parameter. </p>

@@ -34,7 +34,7 @@

the proper value. Enter your site password when prompted. </p>
<p>export CVS_RSH=ssh <br>
<br>

-cvs -z3 -d :ext:[email protected]:/cvsroot/nanocontainer co

+cvs -z3 -d :ext:[email protected]:/cvsroot/picocontainer co

module-as-above<br>
</p>
<p>Remember to replace 'username' with your actual username on