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:36 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 7:58:23 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: 9008 bytes (previous version: 6742 bytes)
Content diff:
(127 equal lines skipped)
    very convenient for distributing properties within libraries, the second area is
    very easy to edit by administrators or developers.</p>
    
--- <p>TODO</p>
+++ <p>Let's start with the full list of actions taken by the Spring Configurator to
+++ read in properties. During this process, various property files are read. If
+++ there is more than one definiton for a property, the last definition wins!</p>
    
+++ <ol>
+++ <li>The classpath is scanned for property files inside jar files located at
+++ <tt>/META-INF/cocoon/properties/*.properties.</tt> Usually these property
files
+++ are default values for beans distributed with the jar the property files are
+++ contained in. All these property files are read in alphabetical order.</li>
+++ <li>All property files located at
+++ <tt>/WEB-INF/classes/META-INF/cocoon/properties/*.properties</tt> are read
in
+++ alphabetical order.</li>
+++ <li>The classpath is scanned for property files inside jar files located at
+++ <tt>/META-INF/cocoon/properties/[RUNNING_MODE]/*.properties.</tt> Usually
these
+++ property files are default values in the given running mode for beans
+++ distributed with the jar the property files are contained in. All these property
+++ files are read in alphabetical order.</li>
+++ <li>All property files located at
+++ <tt>/WEB-INF/classes/META-INF/cocoon/properties/[RUNNING_MODE]/*.properties</tt>
+++ are read in alphabetical order.</li>
+++ <li>All property files from <tt>/WEB-INF/cocoon/properties/*.properties</tt>
+++ are read in alphabetical order.</li>
+++ <li>All property files from
+++ <tt>/WEB-INF/cocoon/properties/[RUNNING_MODE]/*.properties</tt> are read in
+++ alphabetical order.</li>
+++ <li>If the home directory of the current user contains a
+++ <tt>.cocoon/settings.properties</tt> file, this is read next.</li>
+++ <li>If the system property <tt>org.apache.cocoon.settings</tt> is specified
and
+++ points to a property file, this is read. If the system property points to a
+++ directory all property files from this directory are read in alphabetical order
+++ and all property files from the sub directory named [RUNNING_MODE] are read in
+++ alphabetical order.</li>
+++ <li>If a property provider (see below) is configured in the application context,
+++ it is queried for a set of properties.</li>
+++ <li>Read additional configured properties from the settings configuration in the
+++ application context.</li>
+++ <li>Apply additional configured properties from the settigns configuration in
+++ the application context.</li>
+++ <li>Apply system properties.</li>
+++ </ol>
+++ 
    <h2>Configuring Log4j</h2>
    
    <p>You can use the Configurator to
(16 equal lines skipped)


Mime
View raw message