cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: The Spring Configurator
Date Wed, 10 Jan 2007 07:51:57 GMT
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/9/07 8:12:38 AM
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: 10710 bytes (previous version: 9008 bytes)
Content diff:
(168 equal lines skipped)
    <li>Apply system properties.</li>
    </ol>
    
+++ <p>Although this list might look very scary, it is in fact a very simple but
+++ powerful approach:</p>
+++ 
+++ <ul>
+++ <li>If you want to use properties within your configurations, make sure to
+++ supply a default value through a property file which is stored in the jar
+++ containing your components.</li>
+++ <li>If you want to provide default values for different running modes, add these
+++ configurations to your jar as well.</li>
+++ <li>If you want to override default configurations, put them either in your own
+++ jar file and make sure that the name of your property file comes after the
+++ default configuration file in alphabetical order, or put your property file in
+++ /<tt>WEB-INF/classes/META-INF/cocoon/properties.</tt></li>
+++ <li>If you want to override a default configuration depending on a running mode,
+++ add a property file at the same location as before but put it in a sub directory
+++ with the name of the running mode.</li>
+++ <li>To override properties globally, e.g. through an administrator, put the
+++ properties at <tt>/WEB-INF/cocoon/properties</tt> or
+++ <tt>/WEB-INF/cocoon/[RUNNING_MODE]/properties</tt>.</li>
+++ <li>If you want to change a configuration value during development you can just
+++ set it as a system property. (You can also add a property file with the values
+++ or define your own running mode of course.)</li>
+++ <li>If you have special requirements for property handling, you can add a
+++ property provider bean which is a Spring managed bean conforming to the
+++ <tt>org.apache.cocoon.configuration.PropertyProvider</tt> interface. For
+++ example, if you want to store your configurations inside a database or configure
+++ them through a jndi context, you can provide these values through a custom
+++ implementation.</li>
+++ </ul>
+++ 
    <h2>Configuring Log4j</h2>
    
    <p>You can use the Configurator to
(16 equal lines skipped)


Mime
View raw message