Apache » Cocoon »

  Cocoon Spring Configurator

Cocoon Spring Configurator 2.1

Basic Configuration


The Spring Configurator uses Spring's extensible XML authoring features 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 /WEB-INF/applicationContext.xml). 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:

<beans xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                           http://cocoon.apache.org/schema/configurator http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd">

Then you can initialize the configurator by adding the settings element to your bean configuration:

   <!-- Activate Cocoon Spring Configurator -->

This innocent looking statement initializes the Cocoon Spring Configurator and provides support for the following features without any additional configuration: