A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1303.html

Document ID: 1303
Branch: main
Language: default
Name: The Spring Configurator (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/3/07 8:13:21 PM
Updated by: Carsten Ziegeler

A new version has been created, state: publish

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 3818 bytes (previous version: 1788 bytes)
Content diff:
(24 equal lines skipped)
    <li>How can I distribute not only code but also corresponding 
configurations?
    </li>
    <li>How can I distribute partial web applications?</li>
+++ <li>How do I manage hierarchial web application contexts?</li>
    </ul>
    
    <p>Of course Spring is flexible enough to enable solutions to the above
(6 equal lines skipped)
    issues with Spring. Ok, enough motivation, let's see what the Spring
    configurator can provide for your work.</p>
    
+++ <h2>Requirements</h2>
+++ 
+++ <p>The Spring Configurator requires</p>
+++ 
+++ <ul>
+++ <li>the Spring Framework Version 2.0.1 (or above)</li>
+++ <li>JDK 1.4 (or above)</li>
+++ <li>Servlet API 2.3 (or above)</li>
+++ </ul>
+++ 
+++ <p>The Spring Configuration requires two additional jar files, the Cocoon
+++ Configuration API and the Cocoon Spring Configurator, which you can either
+++ download here or from a public Maven repository by adding the Spring
+++ Configurator as a dependency to your project:</p>
+++ 
+++ <p><strong>TODO - Show dependency configuration</strong></p>
+++ 
    <h2>Configuration</h2>
    
+++ <p>The Spring Configurator uses the Spring the
+++ <a 
href="http://static.springframework.org/spring/docs/2.0.x/reference/new-in-2.html#new-in-2-ioc-custom-configuration";>extensible
+++ XML authoring features</a> and therefore it can be directly used in your 
Spring
+++ bean configurations. Usually you add the configurator to your global web
+++ application context configuration (which is usually located at
+++ <em>/WEB-INF/applicationContext.xml</em>). The extensible XML authoring 
requires
+++ that you use the schema based configuration for Spring. Just add the 
required
+++ namespace definition, a reference to the configurator XML schema to your 
bean
+++ configuration:</p>
+++ 
+++ <pre>&lt;beans xmlns="http://www.springframework.org/schema/beans";
+++        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+++        
<strong>xmlns:configurator="http://cocoon.apache.org/schame/configurator";</strong>
+++        xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+++                            
<strong>http://cocoon.apache.org/schema/configurator 
http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.xsd";</strong>&gt;
+++     ...
+++ &lt;/beans&gt;
+++ </pre>
+++ 
+++ <p>Then you can initialize the configurator by adding the <tt>settings</tt>
+++ element to your bean configuration:</p>
+++ 
+++ <pre>   &lt;!-- Activate Cocoon Spring Configurator --&gt;
+++    &lt;configurator:settings/&gt;
+++ </pre>
+++ 
+++ <p>And then...</p>
+++ 
    </body>
    </html>