A document has been updated: http://cocoon.zones.apache.org/daisy/documentation/1312.html
Document ID: 1312 Branch: main Language: default Name: Bean Configurations (unchanged) Document Type: Cocoon Document (unchanged) Updated on: 1/15/07 12:26:27 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: 2292 bytes (previous version: 805 bytes) Content diff: (6 equal lines skipped) <ul> <li>All configuration files contained in jar files located at --- /META-INF/cocoon/spring</li> +++ <tt>/META-INF/cocoon/spring</tt></li> <li>All configuration files contained in jar files located at --- /META-INF/cocoon/spring/[RUNNING_MODE]</li> --- <li>All configuration files from /WEB-INF/classes/META-INF/cocoon/spring</li> +++ <tt>/META-INF/cocoon/spring/[RUNNING_MODE]</tt></li> <li>All configuration files from --- /WEB-INF/classes/META-INF/cocoon/spring/[RUNNING_MODE]</li> +++ <tt>/WEB-INF/classes/META-INF/cocoon/spring</tt></li> +++ <li>All configuration files from +++ <tt>/WEB-INF/classes/META-INF/cocoon/spring/[RUNNING_MODE]</tt></li> </ul> <p>If you want to deploy basic configurations together with your components, you can just put the configuration file inside the jar and the beans are available in the application context.</p> +++ <h2>Property Overriding</h2> +++ +++ <p>To customize bean configurations according to your environment, the Cocoon +++ Spring Configurator provides built-in support for Spring's +++ <a href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-overrideconfigurer">property +++ override configuration mechanism</a>. By default, property files are read in +++ alphabetical order from the following locations:</p> +++ +++ <ul> +++ <li>All files ending with *.properties contained in jar files located at +++ <tt>/META-INF/cocoon/spring</tt></li> +++ <li>All files ending with *.properties contained in jar files located at +++ <tt>/META-INF/cocoon/spring/[RUNNING_MODE]</tt></li> +++ <li>All files ending with *.properties from +++ <tt>/WEB-INF/classes/META-INF/cocoon/spring</tt></li> +++ <li>All files ending with *.properties from +++ <tt>/WEB-INF/classes/META-INF/cocoon/spring/[RUNNING_MODE]</tt></li> +++ <li>All files ending with *.properties from <tt>/WEB-INF/cocoon/spring</tt></li> +++ <li>All files ending with *.properties from +++ <tt>/WEB-INF/cocoon/spring/[RUNNING_MODE]</tt></li> +++ </ul> +++ +++ <p>The properties defined in these property files are only used for overriding +++ bean configurations! These values are not available through the settings object. +++ As we suggest to use namespace based identifiers for beans, the Cocoon Spring +++ Configurator uses the character <tt>#</tt> for separating the bean name from the +++ property name:</p> +++ +++ <pre>my.special.beanName#property=somevalue +++ </pre> +++ </body> </html>